Fix cast issue
authorColin Leroy <colin@colino.net>
Thu, 31 Mar 2016 17:55:49 +0000 (19:55 +0200)
committerColin Leroy <colin@colino.net>
Thu, 31 Mar 2016 17:55:49 +0000 (19:55 +0200)
src/common/utils.c

index 5e24bc649a3604032b603ce15295a23830c02662..236a924a118daf330b8a0f03eccacd82b63478ef 100644 (file)
@@ -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;