--- a/pidgin/gtkthemes.c Sun Nov 24 02:16:14 2013 +0530 +++ b/pidgin/gtkthemes.c Sun Nov 24 02:29:10 2013 +0530 @@ -259,7 +259,7 @@ } if (! g_utf8_validate(buf, -1, NULL)) { - purple_debug_error("gtkthemes", "%s:%d is invalid UTF-8\n", file, line_nbr); + purple_debug_error("gtkthemes", "%s:%" G_GSIZE_FORMAT " is invalid UTF-8\n", file, line_nbr); continue; } @@ -308,7 +308,7 @@ if (*i == '\\' && *(i+1) != '\0') i++; next = g_utf8_next_char(i); - if ((next - i) > (sizeof(l) - li -1)) { + if ((gsize)(next - i) > (sizeof(l) - li -1)) { break; } while (i != next)