Skip to content

Commit 1ff6911

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Avoid undefined behavior
2 parents d5c886a + 98df5c9 commit 1ff6911

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_operators.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#include "zend_multiply.h"
3636
#include "zend_object_handlers.h"
3737

38-
#define LONG_SIGN_MASK (((zend_long)1) << (8*sizeof(zend_long)-1))
38+
#define LONG_SIGN_MASK ZEND_LONG_MIN
3939

4040
BEGIN_EXTERN_C()
4141
ZEND_API int ZEND_FASTCALL add_function(zval *result, zval *op1, zval *op2);

0 commit comments

Comments
 (0)