Fix -Wsign-conversion warnings in log2i and related

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P4
    • tbd
    • Affects Version/s: None
    • Component/s: hotspot

      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`.

            Assignee:
            Unassigned
            Reporter:
            Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: