From: Antony Dovgal Date: Mon, 14 Jul 2008 10:49:10 +0000 (+0000) Subject: use long for "l" X-Git-Tag: BEFORE_HEAD_NS_CHANGE~1271 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=74a52caa2ce50ae006545207c1df319fffe4e353;p=php use long for "l" --- diff --git a/ext/hash/hash.c b/ext/hash/hash.c index a1f49839c9..f697badb31 100644 --- a/ext/hash/hash.c +++ b/ext/hash/hash.c @@ -828,7 +828,7 @@ PHP_FUNCTION(mhash) Gets the name of hash */ PHP_FUNCTION(mhash_get_hash_name) { - int algorithm; + long algorithm; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &algorithm) == FAILURE) { return; @@ -859,7 +859,7 @@ PHP_FUNCTION(mhash_count) Gets the block size of hash */ PHP_FUNCTION(mhash_get_block_size) { - int algorithm; + long algorithm; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &algorithm) == FAILURE) { return; @@ -884,7 +884,7 @@ PHP_FUNCTION(mhash_get_block_size) Generates a key using hash functions */ PHP_FUNCTION(mhash_keygen_s2k) { - int algorithm, bytes; + long algorithm, bytes; char *password, *salt; int password_len, salt_len; char padded_salt[SALT_SIZE];