Skip to content

Commit 4d5ad3f

Browse files
committed
Fix PHP_HAVALUpdate signature
Fixes a -Wcast-function-type warning.
1 parent 53e07ba commit 4d5ad3f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/hash/hash_haval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ PHP_HASH_HAVAL_INIT(5,256)
278278

279279
/* {{{ PHP_HAVALUpdate
280280
*/
281-
PHP_HASH_API void PHP_HAVALUpdate(PHP_HAVAL_CTX *context, const unsigned char *input, unsigned int inputLen)
281+
PHP_HASH_API void PHP_HAVALUpdate(PHP_HAVAL_CTX *context, const unsigned char *input, size_t inputLen)
282282
{
283283
unsigned int i, index, partLen;
284284

ext/hash/php_hash_haval.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ typedef struct {
3232
#define PHP_HASH_HAVAL_INIT_DECL(p,b) PHP_HASH_API void PHP_##p##HAVAL##b##Init(PHP_HAVAL_CTX *); \
3333
PHP_HASH_API void PHP_HAVAL##b##Final(unsigned char*, PHP_HAVAL_CTX *);
3434

35-
PHP_HASH_API void PHP_HAVALUpdate(PHP_HAVAL_CTX *, const unsigned char *, unsigned int);
35+
PHP_HASH_API void PHP_HAVALUpdate(PHP_HAVAL_CTX *, const unsigned char *, size_t);
3636

3737
PHP_HASH_HAVAL_INIT_DECL(3,128)
3838
PHP_HASH_HAVAL_INIT_DECL(3,160)

0 commit comments

Comments
 (0)