From 92e2833403321fe630b22ccdeb00a31fec7785aa Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 18 Oct 2019 20:07:52 +0200 Subject: Fix building as C++ --- zix/strindex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zix/strindex.c') 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)); -- cgit v1.2.1