Skip to content

Instantly share code, notes, and snippets.

@shinhirota
Last active February 28, 2017 05:06
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 shinhirota/f3d00cd7052f05225b8e20f5ed9bc222 to your computer and use it in GitHub Desktop.
Save shinhirota/f3d00cd7052f05225b8e20f5ed9bc222 to your computer and use it in GitHub Desktop.
BOOL is_sum_overflow(long a, long b) {
long sum = a + b;
return (sum < 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment