Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Perl_my_atof3: disallow double signs for Inf/NaN
Perl_my_atof3 used to call S_my_atof_infnan after parsing sign character, but this led Inf/NaN with double signs (e.g. "+-Inf") to be wrongly accepted because S_my_atof_infnan will also parse sign itself. Also improved comment per suggestion from @hvds.
- Loading branch information
1 parent
7035863
commit e79f3c0
Showing
1 changed file
with
11 additions
and
13 deletions.
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