From: Karel Zak Date: Tue, 14 Aug 2007 10:05:29 +0000 (+0200) Subject: tests: fix ULONG_MAX usage on 32bit machines X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd5e23c56a5dc5d20a0c149d2910ac0c0a523097;p=util-linux tests: fix ULONG_MAX usage on 32bit machines Signed-off-by: Karel Zak --- diff --git a/tests/helpers/mnt_test_sysinfo.c b/tests/helpers/mnt_test_sysinfo.c index b817d04e..0e09a35f 100644 --- a/tests/helpers/mnt_test_sysinfo.c +++ b/tests/helpers/mnt_test_sysinfo.c @@ -71,7 +71,11 @@ hlp_ulong_max(void) int hlp_ulong_max32(void) { +#if __WORDSIZE == 64 printf("%lu\n", ULONG_MAX >> 32); +#else + printf("%lu\n", ULONG_MAX); +#endif return 0; }