another format string issue

This commit is contained in:
Thomas Sailer 2013-02-22 20:08:24 +01:00
parent b1874ba28d
commit 68af84c18d

View File

@ -5,7 +5,18 @@
tt.tm_hour = 0;
t = mktime (&tt);
- g_sprintf (t_str, "%ld", t);
+ g_sprintf (t_str, "%ld", (long int)t);
+ g_sprintf (t_str, "%ld", (glong)t);
TEST_PRINTF ("%a", "Sat");
TEST_PRINTF ("%A", "Saturday");
--- gio/gdbusmessage.c.orig 2013-02-22 20:07:15.294752111 +0100
+++ gio/gdbusmessage.c 2013-02-22 20:07:55.788028585 +0100
@@ -1384,7 +1384,7 @@
"Wanted to read %lu byte but only got %lu",
(gulong)len),
(gulong)len,
- (gulong)mbuf->valid_len - mbuf->pos);
+ (gulong)(mbuf->valid_len - mbuf->pos));
mbuf->pos = mbuf->valid_len;
return NULL;
}