[glib] registrybackend: use the glib format string macro
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] registrybackend: use the glib format string macro
- Date: Tue, 26 Jan 2016 09:11:17 +0000 (UTC)
commit a89629db1db6893a20cc52dbe85d2e89a4ba285f
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Tue Jan 26 10:10:39 2016 +0100
registrybackend: use the glib format string macro
gio/gregistrysettingsbackend.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gregistrysettingsbackend.c b/gio/gregistrysettingsbackend.c
index 7fb6659..61de5ba 100644
--- a/gio/gregistrysettingsbackend.c
+++ b/gio/gregistrysettingsbackend.c
@@ -336,9 +336,9 @@ static char *
registry_value_dump (RegistryValue value)
{
if (value.type == REG_DWORD)
- return g_strdup_printf ("%i", value.dword);
+ return g_strdup_printf ("%d", value.dword);
else if (value.type == REG_QWORD)
- return g_strdup_printf ("%I64i", value.ptr == NULL ? 0: *(DWORDLONG *)value.ptr);
+ return g_strdup_printf ("%"G_GINT64_FORMAT, value.ptr == NULL ? 0: *(DWORDLONG *)value.ptr);
else if (value.type == REG_SZ)
return g_strdup_printf ("%s", (char *)value.ptr);
else if (value.type == REG_NONE)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]