From 1f8d84a5620dfb74f2c5812e161ad7942a23abcf Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Wed, 26 Mar 2014 16:20:13 +0000 Subject: [PATCH] [trunk] Make sure to use long long (this is not C89). However this should be ok on most compilers nowadays Update issue 316 --- cmake/TestFileOffsetBits.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }