Re:Fixing a 37-year-old bug by merging a 22-year-old fix
by zimbu668 on Wednesday October 08, 2014 @05:33PM
(#8429582)
The whole function is trying to parse a float value, that loop is looking for the string "Infinity".
c|32 will do a bitwise downcase of an ascii character so,
"INFINITY", "infinity", "INfinITy" will all be accepted. In any of those cases i == 8 at the end of the loop and is still in scope, so the following if statement will ultimately return + or - Infinity.
c|32 will do a bitwise downcase of an ascii character so, "INFINITY", "infinity", "INfinITy" will all be accepted. In any of those cases i == 8 at the end of the loop and is still in scope, so the following if statement will ultimately return + or - Infinity.