php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #54334
Patch php-5.3.6-rounding-patch revision 2011-03-21 11:22 UTC by for-bugs at hnw dot jp

Patch php-5.3.6-rounding-patch for Math related Bug #54334

Patch version 2011-03-21 11:22 UTC

Return to Bug #54334 | Download this patch
Patch Revisions:

Developer: for-bugs@hnw.jp

--- php-5.3.6-orig/ext/standard/math.c	2011-01-01 11:19:59.000000000 +0900
+++ php-5.3.6/ext/standard/math.c	2011-03-21 20:17:55.000000000 +0900
@@ -129,11 +129,7 @@
 	double tmp_value;
 	int precision_places;
 
-	if ((precision_places = php_intlog10abs(value)) > 0) {
-		precision_places = 14 - php_intlog10abs(value);
-	} else {
-		precision_places = 14;
-	}
+	precision_places = 14 - php_intlog10abs(value);
 
 	f1 = php_intpow10(abs(places));
 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 11:01:29 2024 UTC