]> git.ipfire.org Git - thirdparty/gnulib.git/commit
stdc_rotate_left-tests: pacify -Woverflow master
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 13 Aug 2026 00:35:14 +0000 (17:35 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 13 Aug 2026 00:35:51 +0000 (17:35 -0700)
commit4a9026eb7919825455ca9ffe8c6776d43d84a46f
treeda0ad9ca655e4e9e5a8fb4304b05786133af47e6
parent09b1597470c456aeac7e7d19b214821d4526934d
stdc_rotate_left-tests: pacify -Woverflow

Problem found with gcc 16.1.1 20260515 (Red Hat 16.1.1-2) on i686.
* tests/test-stdc_rotate_left.c (test_stdc_rotate_left_ul):
* tests/test-stdc_rotate_right.c (test_stdc_rotate_right_ul): Use
preprocessor-time check, not a potentially runtime check, to see
whether to use 32- or 64-bit tests.  This pacifies gcc -Woverflow.
Include <limits.h> to get ULONG_MAX.
ChangeLog
tests/test-stdc_rotate_left.c
tests/test-stdc_rotate_right.c