From 5c90216d2ce8d8cc8d1453eee1a1e5099bd46631 Mon Sep 17 00:00:00 2001 From: David Hill Date: Thu, 6 Mar 2003 23:07:28 +0000 Subject: 64-bit correction to variables passed to zend_parse_parameters @64-bit correction to variables passed to zend_parse_parameters (Dave) --- ext/mhash/mhash.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ext/mhash') diff --git a/ext/mhash/mhash.c b/ext/mhash/mhash.c index a164a5c46d..12b135b5e4 100644 --- a/ext/mhash/mhash.c +++ b/ext/mhash/mhash.c @@ -107,7 +107,7 @@ PHP_FUNCTION(mhash_count) Gets the block size of hash */ PHP_FUNCTION(mhash_get_block_size) { - int hash; + long hash; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &hash) == FAILURE) { WRONG_PARAM_COUNT; @@ -123,7 +123,7 @@ PHP_FUNCTION(mhash_get_block_size) PHP_FUNCTION(mhash_get_hash_name) { char *name; - int hash; + long hash; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &hash) == FAILURE) { WRONG_PARAM_COUNT; @@ -147,7 +147,7 @@ PHP_FUNCTION(mhash) MHASH td; int bsize; unsigned char *hash_data; - int hash; + long hash; int data_len, key_len=0; char *data, *key=NULL; @@ -196,7 +196,7 @@ PHP_FUNCTION(mhash_keygen_s2k) { KEYGEN keystruct; char salt[SALT_SIZE], *ret; - int hash, bytes; + long hash, bytes; char *password, *in_salt; int password_len, salt_len; -- cgit v1.2.1