diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-16 12:33:11 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-16 12:33:11 -0500 |
commit | 824c4ff4be5a0bf55b6644fed06fcfe2248c4301 (patch) | |
tree | 0eb56394e769e23005a9f03ffea0557c2577e542 /text.c | |
parent | 4bde24cb63313f636ac72b449f54d68515efe485 (diff) |
started getting :build to work
Diffstat (limited to 'text.c')
-rw-r--r-- | text.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -323,7 +323,7 @@ void text_utf8_with_state(Font *font, TextRenderState *state, char const *str) { size_t ret = unicode_utf8_to_utf32(&c, str, (size_t)(end - str)); if (ret == 0) { break; - } else if (ret == (size_t)-1) { + } else if (ret >= (size_t)-2) { // invalid UTF-8 text_char_with_state(font, state, '?'); ++str; |