/soc/2013/ankitkv/gobjectification: 53eae615eb62: Fix warnings
Ankit Vani
a at nevitus.org
Sat Nov 23 16:15:01 EST 2013
Changeset: 53eae615eb62f32e9acdcfb44111499e682b0429
Author: Ankit Vani <a at nevitus.org>
Date: 2013-11-24 02:29 +0530
Branch: soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/53eae615eb62
Description:
Fix warnings
diffstat:
pidgin/gtkthemes.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff --git a/pidgin/gtkthemes.c b/pidgin/gtkthemes.c
--- a/pidgin/gtkthemes.c
+++ b/pidgin/gtkthemes.c
@@ -259,7 +259,7 @@ void pidgin_themes_load_smiley_theme(con
}
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 @@ void pidgin_themes_load_smiley_theme(con
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)
More information about the Commits
mailing list