cvs: php4 /ext/standard math.c
| From: | Edin Kadribasic | Date: | Thu, 16 Jan 2003 13:19:51 +0000 |
| Subject: | cvs: php4 /ext/standard math.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-17949@lists.php.net to get a copy of this message | ||
edink Thu Jan 16 08:19:51 2003 EDT
Modified files:
/php4/ext/standard math.c
Log:
Fixed bug #21648
Index: php4/ext/standard/math.c
diff -u php4/ext/standard/math.c:1.101 php4/ext/standard/math.c:1.102
--- php4/ext/standard/math.c:1.101 Fri Jan 10 08:32:24 2003
+++ php4/ext/standard/math.c Thu Jan 16 08:19:50 2003
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: math.c,v 1.101 2003/01/10 13:32:24 wez Exp $ */
+/* $Id: math.c,v 1.102 2003/01/16 13:19:50 edink Exp $ */
#include "php.h"
#include "php_math.h"
@@ -1011,7 +1011,7 @@
/* allow for thousand separators */
if (thousand_sep) {
- integral += integral / 3;
+ integral += (integral-1) / 3;
}
reslen = integral;