From 33b20e5c20b0bbac5db9d8022ee5499b8cb95b5c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 17 Jan 2012 02:13:19 +0000 Subject: Support compilation as C++ under MSVC++, git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3955 a436a847-0d15-0410-975c-d299462d15a1 --- src/ui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui.c') diff --git a/src/ui.c b/src/ui.c index 824ed15..5d2f066 100644 --- a/src/ui.c +++ b/src/ui.c @@ -30,7 +30,7 @@ lilv_ui_new(LilvWorld* world, assert(type_uri); assert(binary_uri); - LilvUI* ui = malloc(sizeof(struct LilvUIImpl)); + LilvUI* ui = (LilvUI*)malloc(sizeof(LilvUI)); ui->world = world; ui->uri = uri; ui->binary_uri = binary_uri; @@ -43,7 +43,7 @@ lilv_ui_new(LilvWorld* world, free(bundle); ui->classes = lilv_nodes_new(); - zix_tree_insert(ui->classes, type_uri, NULL); + zix_tree_insert((ZixTree*)ui->classes, type_uri, NULL); return ui; } -- cgit v1.2.1