]> git.ipfire.org Git - thirdparty/glibc.git/commit
benchtests: Remove clang warnings
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 20 Nov 2025 18:30:14 +0000 (15:30 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 21 Nov 2025 16:13:21 +0000 (13:13 -0300)
commit4d695077b893c4e65c451e4d7ff91e01c05d4efa
tree5e511e276e28da2319adec5697e54253bb5e6af1
parent9849a61b34b4693cf3fea32aefd6e3793477ab1e
benchtests: Remove clang warnings

clangs warns of the implicit cast of RAND_MAX to float:

  error: implicit conversion from 'int' to 'float' changes value from
  2147483647 to 2147483648 [-Werror,-Wimplicit-const-int-float-conversion]

So make it explicit.

Reviewed-by: Sam James <sam@gentoo.org>
benchtests/bench-malloc-thread.c
benchtests/bench-strchr.c