[glom] Use G_GSIZE_FORMAT instead of a cast
- From: Daniel Elstner <daniel src gnome org>
- To: svn-commits-list gnome org
- Subject: [glom] Use G_GSIZE_FORMAT instead of a cast
- Date: Fri, 24 Jul 2009 08:25:31 +0000 (UTC)
commit 30fa6522c622e1c110b38e20ac15e993e60307b9
Author: Daniel Elstner <danielk openismus com>
Date: Fri Jul 24 10:14:09 2009 +0200
Use G_GSIZE_FORMAT instead of a cast
* glom/libglom/python_embed/pygdavalue_conversions.c: Change format
specifier for GType to "%" G_GSIZE_FORMAT and remove the explicit cast
again. I forgot that this is C code, so GType will always be gsize --
at least with recent versions of GLib.
ChangeLog | 9 +++++++++
glom/libglom/python_embed/pygdavalue_conversions.c | 2 +-
2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 85eaa37..bf8fd19 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2009-07-24 Daniel Elstner <danielk openismus com>
+ Use G_GSIZE_FORMAT instead of a cast
+
+ * glom/libglom/python_embed/pygdavalue_conversions.c: Change format
+ specifier for GType to "%" G_GSIZE_FORMAT and remove the explicit cast
+ again. I forgot that this is C code, so GType will always be gsize --
+ at least with recent versions of GLib.
+
+2009-07-24 Daniel Elstner <danielk openismus com>
+
Use format "%lu" for GType and add cast
* glom/libglom/python_embed/pygdavalue_conversions.c: Change format
diff --git a/glom/libglom/python_embed/pygdavalue_conversions.c b/glom/libglom/python_embed/pygdavalue_conversions.c
index 0a54d2c..a651f95 100644
--- a/glom/libglom/python_embed/pygdavalue_conversions.c
+++ b/glom/libglom/python_embed/pygdavalue_conversions.c
@@ -156,7 +156,7 @@ pygda_value_as_pyobject(const GValue *boxed, gboolean copy_boxed)
} else if (value_type == G_TYPE_UINT) {
ret = PyInt_FromLong (g_value_get_uint ((GValue*)boxed));
} else {
- g_warning ("G_VALUE_TYPE() returned unknown type %lu", (unsigned long)value_type);
+ g_warning ("G_VALUE_TYPE() returned unknown type %" G_GSIZE_FORMAT, value_type);
Py_INCREF (Py_None);
ret = Py_None;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]