silence warning (closes #184)

This commit is contained in:
Steven G. Johnson 2020-03-28 14:00:30 -04:00
parent 6fff5f32bb
commit 02fb59136d

View File

@ -5,7 +5,6 @@ int main(int argc, char **argv)
char buf[8192]; char buf[8192];
FILE *f = argc > 1 ? fopen(argv[1], "r") : NULL; FILE *f = argc > 1 ? fopen(argv[1], "r") : NULL;
utf8proc_uint8_t src[1024]; utf8proc_uint8_t src[1024];
int len;
check(f != NULL, "error opening GraphemeBreakTest.txt"); check(f != NULL, "error opening GraphemeBreakTest.txt");
while (simple_getline(buf, f) > 0) { while (simple_getline(buf, f) > 0) {
@ -30,7 +29,7 @@ int main(int argc, char **argv)
break; break;
} }
else { /* hex-encoded codepoint */ else { /* hex-encoded codepoint */
len = encode((char*) (src + si), buf + bi) - 1; size_t len = encode((char*) (src + si), buf + bi) - 1;
while (src[si]) ++si; /* advance to NUL termination */ while (src[si]) ++si; /* advance to NUL termination */
bi += len; bi += len;
} }