]> err.no Git - util-linux/commitdiff
tests: fix ULONG_MAX usage on 32bit machines
authorKarel Zak <kzak@redhat.com>
Tue, 14 Aug 2007 10:05:29 +0000 (12:05 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 14 Aug 2007 10:05:29 +0000 (12:05 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/helpers/mnt_test_sysinfo.c

index b817d04ee1c5683b6042624724aeafe26fa0b10c..0e09a35fdb36bfa12d371159c53dc37cc7cfeee8 100644 (file)
@@ -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;
 }