Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libc] fix strtointeger behavior on max values
Previously the check to just return MAX or MIN used the caclulated number being the maximum absolute value. This was right in every case except for an unsigned conversion being passed its maximum value with a negative sign on the front. This should return -MAX, but was returning just MAX. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D147171
- Loading branch information
1 parent
f5e63f8
commit 5ce83ca
Showing
2 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters