summaryrefslogtreecommitdiff
path: root/Zend/zend_portability.h
diff options
context:
space:
mode:
authorPedro Magalhães <mail@pmmaga.net>2017-07-23 14:41:50 +0200
committerSara Golemon <pollita@php.net>2017-07-27 09:25:38 -0400
commit34e5d3a87d0b0a01578754b646f50d01a087ba7c (patch)
treeacd86fa28efb47da1348c131441279d6c1862f8c /Zend/zend_portability.h
parent9fcfe52d03bc40cfce8306debe2e91d83a560683 (diff)
downloadphp-git-34e5d3a87d0b0a01578754b646f50d01a087ba7c.tar.gz
Simpler fix for #74974
Diffstat (limited to 'Zend/zend_portability.h')
-rw-r--r--Zend/zend_portability.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_portability.h b/Zend/zend_portability.h
index 9914621a49..b790e0c0dc 100644
--- a/Zend/zend_portability.h
+++ b/Zend/zend_portability.h
@@ -433,7 +433,7 @@ char *alloca();
#define ZEND_STRL(str) (str), (sizeof(str)-1)
#define ZEND_STRS(str) (str), (sizeof(str))
#define ZEND_NORMALIZE_BOOL(n) \
- ((n) ? (((n)>0) ? 1 : -1) : 0)
+ ((n) ? (((n)<0) ? -1 : 1) : 0)
#define ZEND_TRUTH(x) ((x) ? 1 : 0)
#define ZEND_LOG_XOR(a, b) (ZEND_TRUTH(a) ^ ZEND_TRUTH(b))