/pidgin/main: b95e81720353: Fix another warning
    Tomasz Wasilczyk 
    twasilczyk at pidgin.im
       
    Wed May  7 05:51:11 EDT 2014
    
    
  
Changeset: b95e81720353202e0b6cd0c28c1e048df8b6c7eb
Author:	 Tomasz Wasilczyk <twasilczyk at pidgin.im>
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);
    
    
More information about the Commits
mailing list