diff options
Diffstat (limited to 'src/sp_php_compat.h')
| -rw-r--r-- | src/sp_php_compat.h | 2 |
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 | ||
| 112 | 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) { | 112 | 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) { |
| 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); |
