RFR: 8375668: Compiler warning implicit-const-int-float-conversion by clang23
Casper Norrbin
cnorrbin at openjdk.org
Tue Jan 20 15:44:13 UTC 2026
On Tue, 20 Jan 2026 06:47:54 GMT, SendaoYan <syan at openjdk.org> wrote:
> Hi all,
>
> File src/hotspot/os/linux/cgroupSubsystem_linux.hpp was reported compiler warning `implicit conversion from 'const uint64_t' (aka 'const unsigned long') to 'double' changes value from 18446744073709551615 to 18446744073709551616` by clang23. This compiler waring can be fixed by use explict convert instead the implict convert. This change do not change the orginal logic.
Looks good! Thanks for catching and fixing this.
I missed updating the initial value in my original change adding `MetricType`.
-------------
Marked as reviewed by cnorrbin (Committer).
PR Review: https://git.openjdk.org/jdk/pull/29309#pullrequestreview-3682855302
More information about the hotspot-runtime-dev
mailing list