From: Kalle Sommer Nielsen Date: Tue, 19 May 2009 17:47:06 +0000 (+0000) Subject: MFH: Fixed compiler warning X-Git-Tag: php-5.3.0RC3~202 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6068ce7469da1c1a552a7d4e93b2dd2be4a6c7ae;p=php MFH: Fixed compiler warning --- diff --git a/ext/mcrypt/mcrypt.c b/ext/mcrypt/mcrypt.c index f5ce6626e9..5164a585f7 100644 --- a/ext/mcrypt/mcrypt.c +++ b/ext/mcrypt/mcrypt.c @@ -1424,7 +1424,7 @@ PHP_FUNCTION(mcrypt_create_iv) } 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);