summaryrefslogtreecommitdiffstats
path: root/zix/strindex.c
diff options
context:
space:
mode:
Diffstat (limited to 'zix/strindex.c')
-rw-r--r--zix/strindex.c2
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));