Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8316960

Fix -Wsign-conversion warnings in log2i and related

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • P4
    • tbd
    • None
    • hotspot

    Description

      In `powerOfTwo.hpp`, there a few log2 related functions returning `int`. However, some of them always return only unsigned number.

      For example, `log2i_exact` essentially calls `count_trailing_zeros`, which returns `unsigned`.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ayang Albert Yang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: