From 57b345f16ccad6e5b273c58e819ca5adefdcbf72 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 20 Mar 2022 18:43:35 +0100 Subject: Fix compilation on PHP<7.2 --- src/sp_php_compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sp_php_compat.h') diff --git a/src/sp_php_compat.h b/src/sp_php_compat.h index 04914b4..2334f62 100644 --- a/src/sp_php_compat.h +++ b/src/sp_php_compat.h @@ -111,7 +111,7 @@ static inline void php_hash_string_xor_char(unsigned char *out, const unsigned c static inline void php_hash_hmac_prep_key(unsigned char *K, const php_hash_ops *ops, void *context, const unsigned char *key, const size_t key_len) { memset(K, 0, ops->block_size); - if (key_len > ops->block_size) { + if (key_len > (size_t)ops->block_size) { /* Reduce the key first */ #if PHP_VERSION_ID < 80100 ops->hash_init(context); -- cgit v1.3