RFR: 8375668: Compiler warning implicit-const-int-float-conversion by clang23

David Holmes dholmes at openjdk.org
Tue Jan 20 07:07:27 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.

Seems reasonable. Thanks.

-------------

Marked as reviewed by dholmes (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/29309#pullrequestreview-3680648953


More information about the hotspot-runtime-dev mailing list