Skip to content

Commit 98df5c9

Browse files
committed
Avoid undefined behavior
1 parent f77747b commit 98df5c9

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)