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

Fix -Wsign-conversion warnings in log2i and related

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • 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`.

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

              Created:
              Updated: