From cd5e23c56a5dc5d20a0c149d2910ac0c0a523097 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 14 Aug 2007 12:05:29 +0200 Subject: [PATCH] tests: fix ULONG_MAX usage on 32bit machines Signed-off-by: Karel Zak --- tests/helpers/mnt_test_sysinfo.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.39.5