Skip to content

Instantly share code, notes, and snippets.

@vegansk
Created March 10, 2016 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vegansk/d08f7da5345395667e77 to your computer and use it in GitHub Desktop.
Save vegansk/d08f7da5345395667e77 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdint.h>
int main(int argc, char* argv[]) {
printf("%d\n", -2147483648);
printf("%ld\n", -2147483648LL);
printf("%d\n", (1LL) < (-2147483648LL));
return 0;
}
@vegansk
Copy link
Author

vegansk commented Mar 10, 2016

tcc output:

-2147483648
-2147483648
1

gcc output:

-2147483648
-2147483648
0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment