From: Mathieu Malaterre Date: Wed, 26 Mar 2014 16:20:13 +0000 (+0000) Subject: [trunk] Make sure to use long long (this is not C89). However this should be ok on... X-Git-Tag: version.2.1~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f8d84a5620dfb74f2c5812e161ad7942a23abcf;p=openjpeg [trunk] Make sure to use long long (this is not C89). However this should be ok on most compilers nowadays Update issue 316 --- 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; }