cvs: php-src /main snprintf.c

From: Date: Tue, 19 Dec 2006 13:26:39 +0000
Subject: cvs: php-src /main snprintf.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-42183@lists.php.net to get a copy of this message
tony2001 Tue Dec 19 13:26:39 2006 UTC Modified files: /php-src/main snprintf.c Log: -NAN should not be possible http://cvs.php.net/viewvc.cgi/php-src/main/snprintf.c?r1=1.47&r2=1.48&diff_format=u Index: php-src/main/snprintf.c diff -u php-src/main/snprintf.c:1.47 php-src/main/snprintf.c:1.48 --- php-src/main/snprintf.c:1.47 Tue Dec 19 13:15:30 2006 +++ php-src/main/snprintf.c Tue Dec 19 13:26:39 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: snprintf.c,v 1.47 2006/12/19 13:15:30 tony2001 Exp $ */ +/* $Id: snprintf.c,v 1.48 2006/12/19 13:26:39 tony2001 Exp $ */ #include "php.h" @@ -139,7 +139,7 @@ * 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);

« previous php.cvs (#42183) next »