summaryrefslogtreecommitdiff
path: root/pango/pango-context.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2013-08-30 14:14:22 -0400
committerBehdad Esfahbod <behdad@behdad.org>2013-08-30 14:14:47 -0400
commit14b0697a59f51dd017038ca2bb79ba2c2f4034df (patch)
treef660c2380fe4e3dd9cc1b8faca426f81264c6e36 /pango/pango-context.c
parentce791d34b18215bd89a31d9eeac9e72b2b8ceb77 (diff)
downloadpango-14b0697a59f51dd017038ca2bb79ba2c2f4034df.tar.gz
Bug 703995 - Compiler warnings about strict aliasing
Patch from Akira TAGOH.
Diffstat (limited to 'pango/pango-context.c')
-rw-r--r--pango/pango-context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pango-context.c b/pango/pango-context.c
index 8e967134..8bb6a86e 100644
--- a/pango/pango-context.c
+++ b/pango/pango-context.c
@@ -1412,8 +1412,8 @@ string_from_script (PangoScript script)
{
static GEnumClass *class = NULL; /* MT-safe */
GEnumValue *value;
- if (g_once_init_enter ((gsize*)&class))
- g_once_init_leave((gsize*)&class, (gsize)g_type_class_ref (PANGO_TYPE_SCRIPT));
+ if (g_once_init_enter (&class))
+ g_once_init_leave(&class, (gpointer)g_type_class_ref (PANGO_TYPE_SCRIPT));
value = g_enum_get_value (class, script);
if (!value)