summaryrefslogtreecommitdiffstats
path: root/test/lilv_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-08-26 19:39:59 -0400
committerDavid Robillard <d@drobilla.net>2016-08-26 19:39:59 -0400
commitcc1d9d324d6744df6039b2e21ac49cb8fd985959 (patch)
treecf571e0f843afa2eb4b2243ccdb35e3da7fd71ef /test/lilv_test.c
parent17d76be0daa76ad60009fdcfbcae089ccfff6e90 (diff)
downloadlilv-cc1d9d324d6744df6039b2e21ac49cb8fd985959.tar.gz
lilv-cc1d9d324d6744df6039b2e21ac49cb8fd985959.tar.bz2
lilv-cc1d9d324d6744df6039b2e21ac49cb8fd985959.zip
Fix compilation with C++
Diffstat (limited to 'test/lilv_test.c')
-rw-r--r--test/lilv_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lilv_test.c b/test/lilv_test.c
index dac3f4a..fb2b974 100644
--- a/test/lilv_test.c
+++ b/test/lilv_test.c
@@ -2095,7 +2095,7 @@ test_replace_version(void)
LilvNode* minor = NULL;
LilvNode* micro = NULL;
- char* old_bundle_path = malloc(strlen(LILV_TEST_DIR) + 32);
+ char* old_bundle_path = (char*)malloc(strlen(LILV_TEST_DIR) + 32);
strcpy(old_bundle_path, LILV_TEST_DIR);
strcat(old_bundle_path, "old_version.lv2/");
@@ -2115,7 +2115,7 @@ test_replace_version(void)
lilv_node_free(micro);
lilv_node_free(minor);
- char* new_bundle_path = malloc(strlen(LILV_TEST_DIR) + 32);
+ char* new_bundle_path = (char*)malloc(strlen(LILV_TEST_DIR) + 32);
strcpy(new_bundle_path, LILV_TEST_DIR);
strcat(new_bundle_path, "new_version.lv2/");