Skip to content

Commit fe09901

Browse files
committed
emit.c: fix -Wsign-compare
Use size_t for strlen to avoid sign-compare warning.
1 parent 09bc7fd commit fe09901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

emit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ static int y_write_string(
433433
size_t pos = 0, us;
434434
int j;
435435
const unsigned char *s = (const unsigned char *)Z_STRVAL_P(data);
436-
int len = Z_STRLEN_P(data);
436+
size_t len = Z_STRLEN_P(data);
437437

438438
for (j = 0; pos < len; j++) {
439439
us = get_next_char(s, len, &pos, &status);

0 commit comments

Comments
 (0)