summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2019-12-30 23:13:39 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2019-12-30 23:17:39 +0100
commit98df5c97f47dd3a50cb43763a1811f86f2ca912e (patch)
treef4fa31ac53111bb5001c521c8a8c3594b6a16d28 /Zend
parentf77747b06c7623c4f673c75aebbe3372411a4275 (diff)
downloadphp-git-98df5c97f47dd3a50cb43763a1811f86f2ca912e.tar.gz
Avoid undefined behavior
Diffstat (limited to 'Zend')
-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 1ca1c7751c..c5f4ae84a8 100644
--- a/Zend/zend_operators.h
+++ b/Zend/zend_operators.h
@@ -35,7 +35,7 @@
#include "zend_multiply.h"
#include "zend_object_handlers.h"
-#define LONG_SIGN_MASK (((zend_long)1) << (8*sizeof(zend_long)-1))
+#define LONG_SIGN_MASK ZEND_LONG_MIN
BEGIN_EXTERN_C()
ZEND_API int ZEND_FASTCALL add_function(zval *result, zval *op1, zval *op2);