summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/hash/hash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/hash/hash.c b/ext/hash/hash.c
index 9421f5a067..a221f0a884 100644
--- a/ext/hash/hash.c
+++ b/ext/hash/hash.c
@@ -658,7 +658,7 @@ PHP_FUNCTION(mhash)
PHP_FUNCTION(mhash_get_hash_name)
{
- int algorithm;
+ long algorithm;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &algorithm) == FAILURE) {
return;
@@ -683,7 +683,7 @@ PHP_FUNCTION(mhash_count)
PHP_FUNCTION(mhash_get_block_size)
{
- int algorithm;
+ long algorithm;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &algorithm) == FAILURE) {
return;
@@ -705,7 +705,7 @@ PHP_FUNCTION(mhash_get_block_size)
PHP_FUNCTION(mhash_keygen_s2k)
{
- int algorithm, bytes;
+ long algorithm, bytes;
char *password, *salt;
int password_len, salt_len;
char padded_salt[SALT_SIZE];