summaryrefslogtreecommitdiff
path: root/src/sp_php_compat.h
diff options
context:
space:
mode:
authorjvoisin2022-03-20 18:43:35 +0100
committerjvoisin2022-03-20 19:07:35 +0100
commit57b345f16ccad6e5b273c58e819ca5adefdcbf72 (patch)
tree4ee854853720a8a559ed7d34c977be8f42ff2bb6 /src/sp_php_compat.h
parent70aae5917737e42f392edc00ceb7af35b7740eb8 (diff)
Fix compilation on PHP<7.2
Diffstat (limited to 'src/sp_php_compat.h')
-rw-r--r--src/sp_php_compat.h2
1 files changed, 1 insertions, 1 deletions
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
111 111
112static 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) { 112static 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) {
113 memset(K, 0, ops->block_size); 113 memset(K, 0, ops->block_size);
114 if (key_len > ops->block_size) { 114 if (key_len > (size_t)ops->block_size) {
115 /* Reduce the key first */ 115 /* Reduce the key first */
116#if PHP_VERSION_ID < 80100 116#if PHP_VERSION_ID < 80100
117 ops->hash_init(context); 117 ops->hash_init(context);