From c98793ac0580fe75d57beda72ef77248fcd93dc7 Mon Sep 17 00:00:00 2001 From: Colin Leroy Date: Thu, 31 Mar 2016 19:55:49 +0200 Subject: [PATCH] Fix cast issue --- src/common/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/utils.c b/src/common/utils.c index 5e24bc649..236a924a1 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -1005,7 +1005,7 @@ void unfold_line(gchar *str) while (*ch != 0) { c = g_utf8_get_char_validated(ch, -1); - if (c < 0) { + if (c == (gunichar)-1 || c == (gunichar)-2) { /* non-unicode byte, move past it */ ch++; continue; -- 2.25.1