summaryrefslogtreecommitdiff
path: root/cogl/cogl-handle.h
diff options
context:
space:
mode:
Diffstat (limited to 'cogl/cogl-handle.h')
-rw-r--r--cogl/cogl-handle.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cogl/cogl-handle.h b/cogl/cogl-handle.h
index 6caee0e7..8a40222d 100644
--- a/cogl/cogl-handle.h
+++ b/cogl/cogl-handle.h
@@ -81,7 +81,7 @@ typedef struct _CoglHandleObject
\
static CoglHandleClass _cogl_##type_name##_class; \
\
-static GQuark \
+GQuark \
_cogl_handle_##type_name##_get_type (void) \
{ \
static GQuark type = 0; \
@@ -93,7 +93,7 @@ _cogl_handle_##type_name##_get_type (void) \
static CoglHandle \
_cogl_##type_name##_handle_new (Cogl##TypeName *new_obj) \
{ \
- CoglHandleObject *obj = &new_obj->_parent; \
+ CoglHandleObject *obj = (CoglHandleObject *)&new_obj->_parent;\
obj->ref_count = 1; \
\
obj->klass = &_cogl_##type_name##_class; \