emit.c: fix -Wsign-compare

Use size_t for strlen to avoid sign-compare warning.
This commit is contained in:
Bryan Davis
2023-03-28 14:48:04 -06:00
committed by Bryan Davis
parent 09bc7fd194
commit fe099012e1

2
emit.c
View File

@@ -433,7 +433,7 @@ static int y_write_string(
size_t pos = 0, us;
int j;
const unsigned char *s = (const unsigned char *)Z_STRVAL_P(data);
int len = Z_STRLEN_P(data);
size_t len = Z_STRLEN_P(data);
for (j = 0; pos < len; j++) {
us = get_next_char(s, len, &pos, &status);