]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - main.c
Make compiler and virtual-machine compile as C++ code, also removed gmqcc_voidptr...
[xonotic/gmqcc.git] / main.c
diff --git a/main.c b/main.c
index 916a95e01ee52833b95fe029ab0fcb06effbfa04..5925cfa68c8a82b7ac501ba6107c04390271c98b 100644 (file)
--- a/main.c
+++ b/main.c
@@ -536,7 +536,7 @@ int main(int argc, char **argv) {
                 exit(1);
             }
             operators_free = true;
-            newops = mem_a(sizeof(operators[0]) * operator_count);
+            newops = (oper_info*)mem_a(sizeof(operators[0]) * operator_count);
             memcpy(newops, operators, sizeof(operators[0]) * operator_count);
             memcpy(&newops[operator_count-2], &operators[operator_count-1], sizeof(newops[0]));
             memcpy(&newops[operator_count-1], &operators[operator_count-2], sizeof(newops[0]));