cvs: php-src(PHP_5_3) /ext/mcrypt mcrypt.c

From: Date: Tue, 19 May 2009 17:47:06 +0000
Subject: cvs: php-src(PHP_5_3) /ext/mcrypt mcrypt.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-58023@lists.php.net to get a copy of this message
kalle Tue May 19 17:47:06 2009 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/mcrypt mcrypt.c Log: MFH: Fixed compiler warning http://cvs.php.net/viewvc.cgi/php-src/ext/mcrypt/mcrypt.c?r1=1.91.2.3.2.11.2.16&r2=1.91.2.3.2.11.2.17&diff_format=u Index: php-src/ext/mcrypt/mcrypt.c diff -u php-src/ext/mcrypt/mcrypt.c:1.91.2.3.2.11.2.16 php-src/ext/mcrypt/mcrypt.c:1.91.2.3.2.11.2.17 --- php-src/ext/mcrypt/mcrypt.c:1.91.2.3.2.11.2.16 Wed Dec 31 11:15:38 2008 +++ php-src/ext/mcrypt/mcrypt.c Tue May 19 17:47:06 2009 @@ -16,7 +16,7 @@ | Derick Rethans <derick@derickrethans.nl> | +----------------------------------------------------------------------+ */ -/* $Id: mcrypt.c,v 1.91.2.3.2.11.2.16 2008/12/31 11:15:38 sebastian Exp $ */ +/* $Id: mcrypt.c,v 1.91.2.3.2.11.2.17 2009/05/19 17:47:06 kalle Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1424,7 +1424,7 @@ } else { n = size; while (size) { - iv[--size] = 255.0 * php_rand(TSRMLS_C) / RAND_MAX; + iv[--size] = (char) (255.0 * php_rand(TSRMLS_C) / RAND_MAX); } } RETURN_STRINGL(iv, n, 0);

« previous php.cvs (#58023) next »