aboutsummaryrefslogtreecommitdiff
path: root/manual/README.pretty-printers
diff options
context:
space:
mode:
authorCollin Funk <collin.funk1@gmail.com>2025-09-21 22:25:46 -0700
committerCollin Funk <collin.funk1@gmail.com>2025-10-02 18:01:23 -0700
commit6d9e11057708f52c77d81bf13054ce242dea5c78 (patch)
tree43814806b2d48bfb691f3bb5f6782b1cb2629728 /manual/README.pretty-printers
parent3746668bcfeaf1f208c28059035dc67f5dac3682 (diff)
downloadglibc-master.zip
glibc-master.tar.gz
glibc-master.tar.bz2
math: fix Wshift-overflow warning.HEADmaster
When compiling on x86_64 with -Wshift-overflow=2 you can see the following warning: ../sysdeps/ieee754/flt-32/math_config.h: In function ‘is_inf’: ../sysdeps/ieee754/flt-32/math_config.h:184:37: warning: result of ‘2139095040 << 1’ requires 33 bits to represent, but ‘int’ only has 32 bits [-Wshift-overflow=] 184 | return (x << 1) == (EXPONENT_MASK << 1); | ^~ This patch adjusts the definitions to use UINT32_C. This matches the definitions in sysdeps/ieee754/dbl-64/math_config.h which use UINT64_C for these definitions. Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'manual/README.pretty-printers')
0 files changed, 0 insertions, 0 deletions