summaryrefslogtreecommitdiff
path: root/pango/opentype/hb-object-private.h
diff options
context:
space:
mode:
Diffstat (limited to 'pango/opentype/hb-object-private.h')
-rw-r--r--pango/opentype/hb-object-private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/opentype/hb-object-private.h b/pango/opentype/hb-object-private.h
index 1d904067..d274b295 100644
--- a/pango/opentype/hb-object-private.h
+++ b/pango/opentype/hb-object-private.h
@@ -73,9 +73,9 @@ typedef struct {
HB_OBJECT_DO_INIT_EXPR (obj); \
} HB_STMT_END
-#define HB_OBJECT_DO_CREATE(obj) \
+#define HB_OBJECT_DO_CREATE(Type, obj) \
HB_LIKELY (( \
- (obj) = /* XXX */(typeof (obj)) calloc (1, sizeof (*(obj))), \
+ (obj) = (Type *) calloc (1, sizeof (Type)), \
HB_OBJECT_DO_INIT_EXPR (obj), \
(obj) \
))