aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKang-Che Sung <explorer09@gmail.com>2019-09-05 23:40:38 +0800
committerDenys Vlasenko <vda.linux@googlemail.com>2019-09-12 12:23:46 +0200
commitf159352112671e3c1e07356ebf6f590d8f79c8ff (patch)
tree2540212169fb41dc91d314adc10a74220ec7a573
parent4a9daf2b93e455b444f43f9cde309c7f235f6fb5 (diff)
downloadbusybox-w32-f159352112671e3c1e07356ebf6f590d8f79c8ff.tar.gz
busybox-w32-f159352112671e3c1e07356ebf6f590d8f79c8ff.tar.bz2
busybox-w32-f159352112671e3c1e07356ebf6f590d8f79c8ff.zip
bc: Add 'U' suffix in UINT_MAX preprocessor check
Without the 'U' unsigned suffix, gcc will throw a "integer constant is so large that it is unsigned" warning. Signed-off-by: Kang-Che Sung <explorer09@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--miscutils/bc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c
index e492f0f50..92721d18f 100644
--- a/miscutils/bc.c
+++ b/miscutils/bc.c
@@ -844,10 +844,10 @@ struct globals {
844# error Strange INT_MAX 844# error Strange INT_MAX
845#endif 845#endif
846 846
847#if UINT_MAX == 4294967295 847#if UINT_MAX == 4294967295U
848# define BC_MAX_SCALE_STR "4294967295" 848# define BC_MAX_SCALE_STR "4294967295"
849# define BC_MAX_STRING_STR "4294967294" 849# define BC_MAX_STRING_STR "4294967294"
850#elif UINT_MAX == 18446744073709551615 850#elif UINT_MAX == 18446744073709551615U
851# define BC_MAX_SCALE_STR "18446744073709551615" 851# define BC_MAX_SCALE_STR "18446744073709551615"
852# define BC_MAX_STRING_STR "18446744073709551614" 852# define BC_MAX_STRING_STR "18446744073709551614"
853#else 853#else