We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 840d800 commit b532b9aCopy full SHA for b532b9a
ext/mbstring/mbstring.c
@@ -1776,7 +1776,7 @@ static size_t mb_fast_strlen_utf8(unsigned char *p, size_t len)
1776
const __m128i delta = _mm_set1_epi8(1);
1777
__m128i counter = _mm_setzero_si128(); /* Vector of 16 continuation-byte counters */
1778
1779
- int reset_counter = 255;
+ unsigned char reset_counter = 255;
1780
do {
1781
__m128i operand = _mm_loadu_si128((__m128i*)p); /* Load 16 bytes */
1782
__m128i lt = _mm_cmplt_epi8(operand, threshold); /* Find all which are continuation bytes */
0 commit comments