cvs: php-src /ext/mcrypt mcrypt.c

From: Date: Tue, 19 May 2009 17:46:56 +0000
Subject: cvs: php-src /ext/mcrypt mcrypt.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-58022@lists.php.net to get a copy of this message
kalle Tue May 19 17:46:56 2009 UTC Modified files: /php-src/ext/mcrypt mcrypt.c Log: Fix compiler warning http://cvs.php.net/viewvc.cgi/php-src/ext/mcrypt/mcrypt.c?r1=1.121&r2=1.122&diff_format=u Index: php-src/ext/mcrypt/mcrypt.c diff -u php-src/ext/mcrypt/mcrypt.c:1.121 php-src/ext/mcrypt/mcrypt.c:1.122 --- php-src/ext/mcrypt/mcrypt.c:1.121 Tue Mar 10 23:39:27 2009 +++ php-src/ext/mcrypt/mcrypt.c Tue May 19 17:46:56 2009 @@ -16,7 +16,7 @@ | Derick Rethans <derick@derickrethans.nl> | +----------------------------------------------------------------------+ */ -/* $Id: mcrypt.c,v 1.121 2009/03/10 23:39:27 helly Exp $ */ +/* $Id: mcrypt.c,v 1.122 2009/05/19 17:46:56 kalle Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1226,7 +1226,7 @@ case PHP_MCRYPT_IV_SOURCE_RAND: *iv_len = size; while (size) { - (*iv_str)[--size] = 255.0 * php_rand(TSRMLS_C) / RAND_MAX; + (*iv_str)[--size] = (char) (255.0 * php_rand(TSRMLS_C) / RAND_MAX); } break; }

« previous php.cvs (#58022) next »