]> de.git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - correct.c
Get it compiling with C++ compilers again.
[xonotic/gmqcc.git] / correct.c
index 04bd8d1256b15b084c96f81a561b482ae714510b..5d872c112d0488c087dd8104a92ce539fea79979 100644 (file)
--- a/correct.c
+++ b/correct.c
@@ -461,7 +461,7 @@ static GMQCC_INLINE char **correct_known_resize(char **res, size_t *allocated, s
     if (size < oldallocated)
         return res;
 
-    out = correct_pool_alloc(sizeof(*res) * oldallocated + 32);
+    out = (char**)correct_pool_alloc(sizeof(*res) * oldallocated + 32);
     memcpy(out, res, sizeof(*res) * oldallocated);
 
     *allocated += 32;
@@ -474,7 +474,7 @@ static char **correct_known(correction_t *corr, correct_trie_t* table, char **ar
     size_t len = 0;
     size_t row = 0;
     size_t nxt = 8;
-    char **res = correct_pool_alloc(sizeof(char *) * nxt);
+    char **res = (char**)correct_pool_alloc(sizeof(char *) * nxt);
     char **end = NULL;
 
     for (; itr < rows; itr++) {