summaryrefslogtreecommitdiff
path: root/functions.c
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2022-01-22 14:24:27 +0000
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2022-01-22 14:24:27 +0000
commit43419663c65fa8ab27c8bad6aa583efb513c303e (patch)
tree40c827ee6690c57023d8dff3d05911c3249041f9 /functions.c
parentd0350fd2b634e73e8f6ef2a0927ae2decef81602 (diff)
Switch on the correct type in SCALAR_FUNCTION_2
Diffstat (limited to 'functions.c')
-rw-r--r--functions.c2
1 files changed, 1 insertions, 1 deletions
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]);\