pidgin/gtkthemes.c

branch
soc.2013.gobjectification
changeset 35086
53eae615eb62
parent 35079
4fb1914491f1
child 35500
ae6432ea326f
child 36959
4806ff428ecd
--- 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)

mercurial