diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2014-03-26 16:20:13 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2014-03-26 16:20:13 +0000 |
| commit | 1f8d84a5620dfb74f2c5812e161ad7942a23abcf (patch) | |
| tree | 6257d6fb772e1ff1d6170e6a310c33a7e4b5b4a7 /cmake/TestFileOffsetBits.c | |
| parent | a54d757a3ea5f7d5ce9efae355b67a8ec339e7bf (diff) | |
[trunk] Make sure to use long long (this is not C89). However this should be ok on most compilers nowadays
Update issue 316
Diffstat (limited to 'cmake/TestFileOffsetBits.c')
| -rw-r--r-- | cmake/TestFileOffsetBits.c | 2 |
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; } |
