mirror of
https://github.com/php/php-src.git
synced 2026-04-25 08:58:28 +02:00
MFH
This commit is contained in:
+1
-1
@@ -139,7 +139,7 @@ PHPAPI char *php_gcvt(double value, int ndigit, char dec_point, char exponent, c
|
||||
* Infinity or NaN, convert to inf or nan with sign.
|
||||
* We assume the buffer is at least ndigit long.
|
||||
*/
|
||||
snprintf(buf, ndigit + 1, "%s%s", sign ? "-" : "",
|
||||
snprintf(buf, ndigit + 1, "%s%s", (sign && *digits == 'I') ? "-" : "",
|
||||
*digits == 'I' ? "INF" : "NAN");
|
||||
zend_freedtoa(digits);
|
||||
return (buf);
|
||||
|
||||
Reference in New Issue
Block a user