summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmake/TestFileOffsetBits.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/TestFileOffsetBits.c b/cmake/TestFileOffsetBits.c
index 993b2da4..7cf93b71 100644
--- a/cmake/TestFileOffsetBits.c
+++ b/cmake/TestFileOffsetBits.c
@@ -3,7 +3,7 @@
int main(int argc, char **argv)
{
/* Cause a compile-time error if off_t is smaller than 64 bits */
-#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
+#define LARGE_OFF_T (((off_t) (1LL << 62)) - 1 + ((off_t) (1LL << 62)))
int off_t_is_large[ (LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1 ];
return 0;
}