aboutsummaryrefslogtreecommitdiffstats
path: root/src/symap.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-10 23:09:54 +0000
committerDavid Robillard <d@drobilla.net>2012-08-10 23:09:54 +0000
commit7b43ad5b7f119f4b0f586bcdcb1aedae484066d3 (patch)
treeebfdd2824920f514a1570f1a04a0a30cad3246eb /src/symap.c
parent5ebe47b4517dacb45fca97408254c32857a52244 (diff)
downloadjalv-7b43ad5b7f119f4b0f586bcdcb1aedae484066d3.tar.gz
jalv-7b43ad5b7f119f4b0f586bcdcb1aedae484066d3.tar.bz2
jalv-7b43ad5b7f119f4b0f586bcdcb1aedae484066d3.zip
Fix a ton of warnings.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4648 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/symap.c')
-rw-r--r--src/symap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/symap.c b/src/symap.c
index b0b594d..a218c81 100644
--- a/src/symap.c
+++ b/src/symap.c
@@ -81,7 +81,7 @@ static char*
symap_strdup(const char* str)
{
const size_t len = strlen(str);
- char* copy = malloc(len + 1);
+ char* copy = (char*)malloc(len + 1);
memcpy(copy, str, len + 1);
return copy;
}
@@ -153,11 +153,11 @@ symap_map(Symap* map, const char* sym)
char* const str = symap_strdup(sym);
/* Append new symbol to symbols array */
- map->symbols = realloc(map->symbols, map->size * sizeof(str));
+ map->symbols = (char**)realloc(map->symbols, map->size * sizeof(str));
map->symbols[id - 1] = str;
/* Insert new index element into sorted index */
- map->index = realloc(map->index, map->size * sizeof(uint32_t));
+ map->index = (uint32_t*)realloc(map->index, map->size * sizeof(uint32_t));
if (index < map->size - 1) {
memmove(map->index + index + 1,
map->index + index,