aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-21 16:26:12 +1000
committerDavid Walter Seikel2012-01-21 16:26:12 +1000
commite91714c635031b483e4c380c0c9ee0281945df20 (patch)
tree4743802d7f5fb6c638c8d33e8563b4861b76ffda /LuaSL
parentOops, left this off the last commit. More function call parsing. (diff)
downloadSledjHamr-e91714c635031b483e4c380c0c9ee0281945df20.zip
SledjHamr-e91714c635031b483e4c380c0c9ee0281945df20.tar.gz
SledjHamr-e91714c635031b483e4c380c0c9ee0281945df20.tar.bz2
SledjHamr-e91714c635031b483e4c380c0c9ee0281945df20.tar.xz
Make equality expression types return bool.
Diffstat (limited to 'LuaSL')
-rw-r--r--LuaSL/src/LuaSL_compile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c
index 4feba5a..7744c60 100644
--- a/LuaSL/src/LuaSL_compile.c
+++ b/LuaSL/src/LuaSL_compile.c
@@ -383,9 +383,8 @@ LSL_Leaf *addOperation(LuaSL_compiler *compiler, LSL_Leaf *left, LSL_Leaf *lval,
383 switch (lval->token->subType) 383 switch (lval->token->subType)
384 { 384 {
385 case ST_BOOLEAN : 385 case ST_BOOLEAN :
386 lval->basicType = OT_bool;
387 break;
388 case ST_COMPARISON : 386 case ST_COMPARISON :
387 case ST_EQUALITY :
389 lval->basicType = OT_bool; 388 lval->basicType = OT_bool;
390 break; 389 break;
391 case ST_MULTIPLY : 390 case ST_MULTIPLY :