aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-02-02 12:16:47 +1000
committerDavid Walter Seikel2012-02-02 12:16:47 +1000
commit05e5c35f1e6677820b8a86ad6bb66a3e17c5ce43 (patch)
tree0bacf381e68b2e00d78e4ddfe58438a1264ff808 /LuaSL/src
parentFix up crements ignorables. (diff)
downloadSledjHamr-05e5c35f1e6677820b8a86ad6bb66a3e17c5ce43.zip
SledjHamr-05e5c35f1e6677820b8a86ad6bb66a3e17c5ce43.tar.gz
SledjHamr-05e5c35f1e6677820b8a86ad6bb66a3e17c5ce43.tar.bz2
SledjHamr-05e5c35f1e6677820b8a86ad6bb66a3e17c5ce43.tar.xz
Get the right type for identifier subs.
Diffstat (limited to 'LuaSL/src')
-rw-r--r--LuaSL/src/LuaSL_compile.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c
index ac4d779..2d5878f 100644
--- a/LuaSL/src/LuaSL_compile.c
+++ b/LuaSL/src/LuaSL_compile.c
@@ -374,6 +374,11 @@ LSL_Leaf *addOperation(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval,
374 374
375 if (var) 375 if (var)
376 lType = var->basicType; 376 lType = var->basicType;
377 if (left->value.identifierValue->sub)
378 {
379 // TODO - keep an eye on this, but I think all the sub types are floats.
380 lType = OT_float;
381 }
377 } 382 }
378 else 383 else
379 lType = left->basicType; 384 lType = left->basicType;
@@ -396,6 +401,11 @@ LSL_Leaf *addOperation(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval,
396 401
397 if (var) 402 if (var)
398 rType = var->basicType; 403 rType = var->basicType;
404 if (right->value.identifierValue->sub)
405 {
406 // TODO - keep an eye on this, but I think all the sub types are floats.
407 rType = OT_float;
408 }
399 } 409 }
400 else 410 else
401 rType = right->basicType; 411 rType = right->basicType;