From 43419663c65fa8ab27c8bad6aa583efb513c303e Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Sat, 22 Jan 2022 14:24:27 +0000 Subject: Switch on the correct type in SCALAR_FUNCTION_2 --- functions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functions.c') diff --git a/functions.c b/functions.c index 07e017b..9f23a43 100644 --- a/functions.c +++ b/functions.c @@ -537,7 +537,7 @@ Array *name(Array *left, Array *right){\ else\ res = duparray(left);\ for(int i = 0; i < left->size; i++)\ - switch(res->type){\ + switch(left->type){\ default: throwerror(nil, EType); break;\ case AtypeArray:\ freearray(res->arraydata[i]);\ -- cgit v1.2.3