Fix cast issue
[claws.git] / 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;