cvs: php4 /ext/standard math.c

From: Date: Tue, 18 Sep 2001 20:05:05 +0000
Subject: cvs: php4 /ext/standard math.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-7457@lists.php.net to get a copy of this message
sterling Tue Sep 18 16:05:05 2001 EDT Modified files: /php4/ext/standard math.c Log: another attempt at fixing compile warnings... Index: php4/ext/standard/math.c diff -u php4/ext/standard/math.c:1.58 php4/ext/standard/math.c:1.59 --- php4/ext/standard/math.c:1.58 Tue Sep 18 01:48:49 2001 +++ php4/ext/standard/math.c Tue Sep 18 16:05:05 2001 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: math.c,v 1.58 2001/09/18 05:48:49 sterling Exp $ */ +/* $Id: math.c,v 1.59 2001/09/18 20:05:05 sterling Exp $ */ #include "php.h" #include "php_math.h" @@ -733,11 +733,11 @@ if(!f_mode && (!mult || digit > LONG_MAX/mult || num > LONG_MAX-mult*digit)) { f_mode = 1; if(!mult) { - fmult = ULONG_MAX + (ulong) 1; + fmult = (ulong) ULONG_MAX + 1; } else { - fmult = (unsigned long)mult; + fmult = (ulong) mult; } - fnum = (unsigned long)num; + fnum = (ulong) num; } if(f_mode) {

« previous php.cvs (#7457) next »