commit c98793ac0580fe75d57beda72ef77248fcd93dc7
parent 1da6103b4a35c1cbf29e3d6bfadb2a2eec740425
Author: Colin Leroy <colin@colino.net>
Date: Thu, 31 Mar 2016 19:55:49 +0200
Fix cast issue
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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;