Integrated: 8375668: Compiler warning implicit-const-int-float-conversion by clang23
SendaoYan
syan at openjdk.org
Wed Jan 21 03:43:10 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.
This pull request has now been integrated.
Changeset: a448f0b9
Author: SendaoYan <syan at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/a448f0b9f46de35ef26994e8540b9ae242372e8d
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
8375668: Compiler warning implicit-const-int-float-conversion by clang23
Reviewed-by: dholmes, cnorrbin
-------------
PR: https://git.openjdk.org/jdk/pull/29309
More information about the hotspot-runtime-dev
mailing list