diff options
Diffstat (limited to 'src/semantic-analysis.c')
-rw-r--r-- | src/semantic-analysis.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/semantic-analysis.c b/src/semantic-analysis.c index 15b3f8c..155ab57 100644 --- a/src/semantic-analysis.c +++ b/src/semantic-analysis.c @@ -451,6 +451,9 @@ static bool check_call(CcmmcAst *call, CcmmcSymbolTable *table) any_error = true; continue; } + // Get the type of the scalar variable for later use + if (func->type.param_list[i].array_dimension == 0) + any_error = check_relop_expr(param, table) || any_error; } else { any_error = check_relop_expr(param, table) || any_error; |