Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cast a 64 bit integer into 32 bit might cause overflow. When the *a is larger than *b and 31th bit of (*a - *b) is 1, casting it to an 32 bit integer will yeild a negative number, which is an unexpected result.
- Loading branch information