diff options
author | David Walter Seikel | 2014-05-16 07:07:16 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-05-16 07:07:16 +1000 |
commit | 593b92a7c30a188e360a032666fcc0a9fc23113e (patch) | |
tree | 256fe49412a48a5113496d02668ed51a09576af2 | |
parent | Optimize toBool() a little. (diff) | |
download | SledjHamr-593b92a7c30a188e360a032666fcc0a9fc23113e.zip SledjHamr-593b92a7c30a188e360a032666fcc0a9fc23113e.tar.gz SledjHamr-593b92a7c30a188e360a032666fcc0a9fc23113e.tar.bz2 SledjHamr-593b92a7c30a188e360a032666fcc0a9fc23113e.tar.xz |
Actually typecast to list / table.
Diffstat (limited to '')
-rw-r--r-- | src/LuaSL/LuaSL_compile.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 * | |||
1287 | lval->basicType = type->basicType; | 1287 | lval->basicType = type->basicType; |
1288 | 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? | 1288 | 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? |
1289 | lval->value.parenthesis->flags |= MF_TYPECAST; | 1289 | lval->value.parenthesis->flags |= MF_TYPECAST; |
1290 | if ((expr) && (OT_list == type->basicType)) | ||
1291 | lval->value.parenthesis->flags |= MF_TYPECAST; | ||
1290 | } | 1292 | } |
1291 | // Actualy, at this point, type is no longer needed. | 1293 | // Actualy, at this point, type is no longer needed. |
1292 | lval->toKen = tokens[LSL_TYPECAST_OPEN - lowestToken]; | 1294 | lval->toKen = tokens[LSL_TYPECAST_OPEN - lowestToken]; |