G1: Fix -Wconversion warnings in G1CardSetInlinePtr::card_pos_for

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 22
    • Affects Version/s: 22
    • Component/s: hotspot
    • gc
    • b11

      The input args are of `uint` type while the return value is of `uint8_t`.

      Inspecting all its callers, the return value is used in the context of `uintptr_t`. One can change the return type to`uint` to remove this warning here.

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

              Created:
              Updated:
              Resolved: