fix: compare unsigned

This commit is contained in:
iceman1001 2019-04-04 22:36:45 +02:00
parent d127c2294c
commit 4d18b5a11c

View file

@ -122,7 +122,7 @@ const char *utf8_iterate(const char *buffer, size_t bufsize, int32_t *codepoint)
return buffer;
count = utf8_check_first(buffer[0]);
if (count <= 0)
if (count == 0)
return NULL;
if (count == 1)