CVS: sylpheedclaws/sylpheed-claws/src/common utils.c,1.36.2.86.2.3,1.36.2.86.2.4

[email protected]
Newsgroups gmane.mail.sylpheed.claws.cvs
Message-ID <[email protected]>
Update of /pack/anoncvs/sylpheedclaws/sylpheed-claws/src/common
In directory sunsite.dk:/tmp/cvs-serv9682/src/common

Modified Files:
      Tag: stable_2_6
	utils.c 
Log Message:
2006-12-04 [paul]	2.6.0cvs24-stable

	* src/common/utils.c
		backport from 2.6.0cvs82
		Probably fix bug 1066, 'Incorrect mailbox 
		size displayed' 

Index: utils.c
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/sylpheed-claws/src/common/utils.c,v
retrieving revision 1.36.2.86.2.3
retrieving revision 1.36.2.86.2.4
diff -u -d -r1.36.2.86.2.3 -r1.36.2.86.2.4
--- utils.c	2006/12/04 08:15:48	1.36.2.86.2.3
+++ utils.c	2006/12/04 08:18:34	1.36.2.86.2.4
@@ -351,14 +351,14 @@
 		gb_format = _("%.2fGB");
 	}
 	
-	if (size < 1024) {
+	if (size < (off_t)1024) {
 		g_snprintf(str, sizeof(str), b_format, (gint)size);
 		return str;
-	} else if (size >> 10 < 1024) {
+	} else if (size >> 10 < (off_t)1024) {
 		divide(size, 10, t, r);
 		g_snprintf(str, sizeof(str), kb_format, t, r);
 		return str;
-	} else if (size >> 20 < 1024) {
+	} else if (size >> 20 < (off_t)1024) {
 		divide(size, 20, t, r);
 		g_snprintf(str, sizeof(str), mb_format, t, r);
 		return str;
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.