From 922b6c51fbcdabd3823e311c46fe55af193196e1 Mon Sep 17 00:00:00 2001 From: A404M Date: Mon, 9 Jun 2025 15:15:28 +0330 Subject: fixing bug in anytype --- src/compiler/ast-tree.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/compiler/ast-tree.h') diff --git a/src/compiler/ast-tree.h b/src/compiler/ast-tree.h index 2d96983..7ee62ff 100644 --- a/src/compiler/ast-tree.h +++ b/src/compiler/ast-tree.h @@ -241,10 +241,14 @@ typedef struct AstTreeFunctionCallParam { AstTree *value; } AstTreeFunctionCallParam; +typedef struct AstTreeFunctionCallParams { + AstTreeFunctionCallParam *data; + size_t size; +} AstTreeFunctionCallParams; + typedef struct AstTreeFunctionCall { AstTree *function; - AstTreeFunctionCallParam *parameters; - size_t parameters_size; + AstTreeFunctionCallParams parameters; } AstTreeFunctionCall; typedef u64 AstTreeInt; @@ -325,7 +329,7 @@ typedef struct AstTreeNamespace { typedef struct AstTreeShapeShifter { AstTreeFunction *function; struct { - AstTreeFunctionCall **calls; + AstTreeFunctionCallParams *calls; AstTreeFunction **functions; size_t size; } generateds; -- cgit v1.2.3