From 3132434447990f24516fb196b3fcf7771895a17b Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 3 May 2022 00:07:15 +0200 Subject: Help the compiler to optimize sp_do_hash_hmac_sha256 a more --- src/sp_unserialize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sp_unserialize.c b/src/sp_unserialize.c index 2e7c173..64cf1b5 100644 --- a/src/sp_unserialize.c +++ b/src/sp_unserialize.c @@ -8,7 +8,7 @@ static inline void *php_hash_alloc_context(const php_hash_ops *ops) { } #endif -static zend_string *sp_do_hash_hmac_sha256(char *data, size_t data_len, char *key, size_t key_len) +static zend_string *sp_do_hash_hmac_sha256(char* restrict data, size_t data_len, char* restrict key, size_t key_len) { #if PHP_VERSION_ID < 80000 const php_hash_ops *ops = php_hash_fetch_ops(ZEND_STRL("sha256")); -- cgit v1.3