Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### What problems were solved in this pull request? Problem: `compare_int` uses subtraction to determine the size of two integers, which may cause integer overflow and return incorrect results. ### How to reproduce When v1 is -2147483648 and v2 is 1, return 2147483647. Returned incorrect result due to integer overflow ### What is changed and how it works? Use comparison operators instead of subtraction.
- Loading branch information