cvs: php4 /ext/standard/ math.c

From: Date: Wed, 17 May 2000 12:51:37 +0000
Subject: cvs: php4 /ext/standard/ math.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-15122@lists.php.net to get a copy of this message
andrei Wed May 17 14:51:37 2000 EDT Modified files: /php4/ext/standard math.c Log: Let's cast it. Index: php4/ext/standard/math.c diff -u php4/ext/standard/math.c:1.22 php4/ext/standard/math.c:1.23 --- php4/ext/standard/math.c:1.22 Wed May 17 14:50:04 2000 +++ php4/ext/standard/math.c Wed May 17 14:51:37 2000 @@ -132,7 +132,8 @@ /* break omitted intentionally */ case IS_DOUBLE: - return_val = (Z_TYPE_PP(value) == IS_LONG) ? Z_LVAL_PP(value) : Z_DVAL_PP(value); + return_val = (Z_TYPE_PP(value) == IS_LONG) ? + (double)Z_LVAL_PP(value) : Z_DVAL_PP(value); f = pow(10.0, places);

« previous php.version4 (#15122) next »