Skip to content

Commit 85371ec

Browse files
committed
Cast the parameter type of arm BLOCKCONV_LOAD (#14159)
When building with gcc in the Arm environment, a runtime error due to an overflow occurred, so we fixed it. closes #14159
1 parent da5b43f commit 85371ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_operators.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ static _locale_t current_locale = NULL;
122122

123123
#define BLOCKCONV_LOAD(input) \
124124
int8x16_t blconv_operand = vld1q_s8((const int8_t*)(input)); \
125-
uint8x16_t blconv_mask = vcltq_s8(vaddq_s8(blconv_operand, blconv_offset), blconv_threshold);
125+
uint8x16_t blconv_mask = vcltq_s8(vreinterpretq_s8_u8(vaddq_u8(vreinterpretq_u8_s8(blconv_operand), vreinterpretq_u8_s8(blconv_offset))), blconv_threshold);
126126

127127
#define BLOCKCONV_FOUND() vmaxvq_u8(blconv_mask)
128128

0 commit comments

Comments
 (0)