From 593b92a7c30a188e360a032666fcc0a9fc23113e Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Fri, 16 May 2014 07:07:16 +1000 Subject: Actually typecast to list / table. --- src/LuaSL/LuaSL_compile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/LuaSL/LuaSL_compile.c b/src/LuaSL/LuaSL_compile.c index 9695bef..fb9a5be 100644 --- a/src/LuaSL/LuaSL_compile.c +++ b/src/LuaSL/LuaSL_compile.c @@ -1287,6 +1287,8 @@ LSL_Leaf *addTypecast(LSL_Leaf *lval, LSL_Leaf *type, LSL_Leaf *rval, LSL_Leaf * lval->basicType = type->basicType; if ((expr) && (OT_integer == type->basicType)) // TODO - Should be from string, but I guess I'm not propagating basic types up from function calls and parenthesis? lval->value.parenthesis->flags |= MF_TYPECAST; + if ((expr) && (OT_list == type->basicType)) + lval->value.parenthesis->flags |= MF_TYPECAST; } // Actualy, at this point, type is no longer needed. lval->toKen = tokens[LSL_TYPECAST_OPEN - lowestToken]; -- cgit v1.1