Skip to content

Commit

Permalink
Merge branch 'PHP-8.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Dec 22, 2023
2 parents 48ebe58 + a2068ef commit 4ffa6e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Zend/zend_operators.h
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ static zend_always_inline size_t zend_strnlen(const char* s, size_t maxlen)
#if defined(HAVE_STRNLEN)
return strnlen(s, maxlen);
#else
const char *p = memchr(s, '\0', maxlen);
const char *p = (const char *)memchr(s, '\0', maxlen);
return p ? p-s : maxlen;
#endif
}
Expand Down

0 comments on commit 4ffa6e3

Please sign in to comment.