CVS: sylpheedclaws/sylpheed-claws/src/common utils.c,1.36.2.91,1.36.2.92
[email protected] Mon, 04 Dec 2006 07:57:42 +0000
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-serv3074/src/common
Modified Files:
Tag: gtk2
utils.c
Log Message:
2006-12-04 [colin] 2.6.0cvs82
* src/common/utils.c
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.91
retrieving revision 1.36.2.92
diff -u -d -r1.36.2.91 -r1.36.2.92
--- utils.c 2006/12/04 07:42:20 1.36.2.91
+++ utils.c 2006/12/04 07:57:37 1.36.2.92
@@ -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;