summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/zend_operators.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h
index 9d9e2055a5..913ab710c4 100644
--- a/Zend/zend_operators.h
+++ b/Zend/zend_operators.h
@@ -193,7 +193,7 @@ zend_memnstr(const char *haystack, const char *needle, size_t needle_len, const
static zend_always_inline const void *zend_memrchr(const void *s, int c, size_t n)
{
const unsigned char *e;
- if (n <= 0) {
+ if (0 == n) {
return NULL;
}