diff options
author | Collin Funk <collin.funk1@gmail.com> | 2025-09-21 22:25:46 -0700 |
---|---|---|
committer | Collin Funk <collin.funk1@gmail.com> | 2025-10-02 18:01:23 -0700 |
commit | 6d9e11057708f52c77d81bf13054ce242dea5c78 (patch) | |
tree | 43814806b2d48bfb691f3bb5f6782b1cb2629728 /manual/Makefile | |
parent | 3746668bcfeaf1f208c28059035dc67f5dac3682 (diff) | |
download | glibc-master.zip glibc-master.tar.gz glibc-master.tar.bz2 |
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/Makefile')
0 files changed, 0 insertions, 0 deletions