fuse: better handling of long (Cygwin64 vs Win64)

This commit is contained in:
Bill Zissimopoulos
2016-05-31 11:12:01 -07:00
parent 300ce8485b
commit 765bb1e1a3
3 changed files with 23 additions and 4 deletions

View File

@ -303,7 +303,11 @@ void fuse_opt_parse_test(void)
ASSERT(0 == strcmp("WwWw", data.w));
ASSERT(1 == data.x);
ASSERT((long)040000000001 == data.y);
ASSERT(((long long)0x100000001 & 0xffffffff)== data.z);
#if defined(_WIN64)
ASSERT((long long)0x100000001 == data.z);
#else
ASSERT(((long long)0x100000001 & 0xffffffff) == data.z);
#endif
ASSERT(+1234567890 == data.dec);
ASSERT(-1234567890 == data.neg);
ASSERT(0xABCDEF == data.hex);