1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 08:58:28 +02:00
This commit is contained in:
Antony Dovgal
2006-12-19 13:27:09 +00:00
parent c34d863d3e
commit 4307af8cdf
+1 -1
View File
@@ -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);