diff options
author | David Robillard <d@drobilla.net> | 2019-10-18 20:07:52 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-10-18 20:15:53 +0200 |
commit | 92e2833403321fe630b22ccdeb00a31fec7785aa (patch) | |
tree | af69201d4ae1d02ce3e57fc179cbbfe6cda4feb7 /zix/strindex.c | |
parent | 7f9f0d2b6e7ac33e5b2cc5060481a2cc1d429a7d (diff) | |
download | zix-92e2833403321fe630b22ccdeb00a31fec7785aa.tar.gz zix-92e2833403321fe630b22ccdeb00a31fec7785aa.tar.bz2 zix-92e2833403321fe630b22ccdeb00a31fec7785aa.zip |
Fix building as C++
Diffstat (limited to 'zix/strindex.c')
-rw-r--r-- | zix/strindex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zix/strindex.c b/zix/strindex.c index 6323944..fffc94f 100644 --- a/zix/strindex.c +++ b/zix/strindex.c @@ -53,7 +53,7 @@ zix_strindex_new(const char* s) ZixStrindex* t = (ZixStrindex*)malloc(sizeof(ZixStrindex)); memset(t, '\0', sizeof(struct _ZixStrindex)); - t->s = calloc(1, len + 1); + t->s = (char*)calloc(1, len + 1); memcpy(t->s, s, len); t->root = (ZixStrindexNode*)malloc(sizeof(ZixStrindexNode)); |