aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src
diff options
context:
space:
mode:
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;