]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - fold.cpp
Use std::vector for SYA
[xonotic/gmqcc.git] / fold.cpp
index 5e4095557358a08761dd26d0c060f98c1fc14042..1e4bcd4bb104628220aefc61b5f2bdb5f6abc64f 100644 (file)
--- a/fold.cpp
+++ b/fold.cpp
@@ -1365,7 +1365,7 @@ static GMQCC_INLINE ast_expression *fold_op_length(fold_t *fold, ast_value *a) {
     if (fold_can_1(a) && isstring(a))
         return fold_constgen_float(fold, strlen(fold_immvalue_string(a)), false);
     if (isarray(a))
-        return fold_constgen_float(fold, vec_size(a->initlist), false);
+        return fold_constgen_float(fold, a->initlist.size(), false);
     return NULL;
 }