Skip to content

Instantly share code, notes, and snippets.

@awreece
Created May 3, 2012 02:20
Show Gist options
  • Save awreece/2582587 to your computer and use it in GitHub Desktop.
Save awreece/2582587 to your computer and use it in GitHub Desktop.
assert(sizeof(uintptr_t) == 8);
assert(sizeof(unsigned long long) == 8);
uintptr_t x = 0xffffffff80000000ULL;
x ^= (1 << 31);
printf("%llx\n", x);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment