summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/helpers/mnt_test_sysinfo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/helpers/mnt_test_sysinfo.c b/tests/helpers/mnt_test_sysinfo.c
index b817d04ee..0e09a35fd 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;
}