summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-11-24 20:31:48 -0500
committerDavid Robillard <d@drobilla.net>2024-11-24 20:31:48 -0500
commitb1b2a693ba14627a2170cecfd7ece313224888cd (patch)
treeeb192d1fe10d9f6eb3351d48032ebdacedad967a
parent94478a685a327fd239408c7ddd50ec6d784c2652 (diff)
downloadlilv-b1b2a693ba14627a2170cecfd7ece313224888cd.tar.gz
lilv-b1b2a693ba14627a2170cecfd7ece313224888cd.tar.bz2
lilv-b1b2a693ba14627a2170cecfd7ece313224888cd.zip
Fix build as C++
-rw-r--r--test/lilv_test_uri_map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lilv_test_uri_map.h b/test/lilv_test_uri_map.h
index 832b723..00b5226 100644
--- a/test/lilv_test_uri_map.h
+++ b/test/lilv_test_uri_map.h
@@ -51,7 +51,7 @@ map_uri(LV2_URID_Map_Handle handle, const char* uri)
assert(serd_uri_string_has_scheme((const uint8_t*)uri));
map->uris = (char**)realloc(map->uris, ++map->n_uris * sizeof(char*));
- map->uris[map->n_uris - 1] = calloc(1, uri_len + 1);
+ map->uris[map->n_uris - 1] = (char*)calloc(1, uri_len + 1);
memcpy(map->uris[map->n_uris - 1], uri, uri_len + 1);
return map->n_uris;
}