[trunk] Make sure to use long long (this is not C89). However this should be ok on most compilers nowadays

Update issue 316
This commit is contained in:
Mathieu Malaterre 2014-03-26 16:20:13 +00:00
parent a54d757a3e
commit 1f8d84a562
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}