Does it work with unsigned long long ? 0xFFFFFFFFFFFFFFFF is indeed too large for long long, 0x7FFFFFFFFFFFFFFF is the max.