cvs: php4 /ext/standard formatted_print.c

From: Date: Thu, 19 Jul 2001 08:12:12 +0000
Subject: cvs: php4 /ext/standard formatted_print.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-6264@lists.php.net to get a copy of this message
stas Thu Jul 19 04:12:12 2001 EDT Modified files: /php4/ext/standard formatted_print.c Log: Fix warnings Index: php4/ext/standard/formatted_print.c diff -u php4/ext/standard/formatted_print.c:1.35 php4/ext/standard/formatted_print.c:1.36 --- php4/ext/standard/formatted_print.c:1.35 Wed Jul 18 12:48:52 2001 +++ php4/ext/standard/formatted_print.c Thu Jul 19 04:12:12 2001 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: formatted_print.c,v 1.35 2001/07/18 16:48:52 stas Exp $ */ +/* $Id: formatted_print.c,v 1.36 2001/07/19 08:12:12 stas Exp $ */ #include <math.h> /* modf() */ #include "php.h" @@ -219,7 +219,7 @@ do { nmagn = magn / 10; - numbuf[--i] = (magn - (nmagn * 10)) + '0'; + numbuf[--i] = (unsigned char)(magn - (nmagn * 10)) + '0'; magn = nmagn; } while (magn > 0 && i > 0); @@ -254,7 +254,7 @@ do { nmagn = magn / 10; - numbuf[--i] = (magn - (nmagn * 10)) + '0'; + numbuf[--i] = (unsigned char)(magn - (nmagn * 10)) + '0'; magn = nmagn; } while (magn > 0 && i > 0);

« previous php.cvs (#6264) next »