Do not assume that sizeof(int)==sizeof(unsigned long long)

This might not be true on 32 bit platforms.