/pidgin/main: b95e81720353: Fix another warning

Tomasz Wasilczyk <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: b95e81720353202e0b6cd0c28c1e048df8b6c7eb
Author:	 Tomasz Wasilczyk <[email protected]>
Date:	 2014-05-07 11:51 +0200
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/b95e81720353

Description:

Fix another warning

diffstat:

 libpurple/util.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff --git a/libpurple/util.c b/libpurple/util.c
--- a/libpurple/util.c
+++ b/libpurple/util.c
@@ -2985,7 +2985,7 @@ purple_util_write_data_to_file_absolute(
 {
 	gchar *filename_temp;
 	FILE *file;
-	size_t real_size, byteswritten;
+	gsize real_size, byteswritten;
 	GStatBuf st;
 #ifndef HAVE_FILENO
 	int fd;
@@ -3106,7 +3106,7 @@ purple_util_write_data_to_file_absolute(
 		return FALSE;
 	}
 	/* Use stat to be absolutely sure. */
-	if ((g_stat(filename_temp, &st) == -1) || (st.st_size != real_size)) {
+	if ((g_stat(filename_temp, &st) == -1) || ((gsize)st.st_size != real_size)) {
 		purple_debug_error("util", "Error writing data to file %s: "
 			"couldn't g_stat file", filename_temp);
 		g_free(filename_temp);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.