Skip to content

Commit 194a2c1

Browse files
committed
ext/standard/url.c fix a [-Wsign-compare] warning
1 parent 8c16076 commit 194a2c1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/standard/url.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,10 +514,9 @@ static zend_always_inline zend_string *php_url_encode_impl(const char *s, size_t
514514
_mm_storeu_si128((__m128i*)to, in);
515515
to += 16;
516516
} else {
517-
int i;
518517
unsigned char xmm[16];
519518
_mm_storeu_si128((__m128i*)xmm, in);
520-
for (i = 0; i < sizeof(xmm); i++) {
519+
for (size_t i = 0; i < sizeof(xmm); i++) {
521520
if ((bits & (0x1 << i))) {
522521
*to++ = xmm[i];
523522
} else {

0 commit comments

Comments
 (0)