From e91714c635031b483e4c380c0c9ee0281945df20 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sat, 21 Jan 2012 16:26:12 +1000 Subject: Make equality expression types return bool. --- LuaSL/src/LuaSL_compile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'LuaSL/src') 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, switch (lval->token->subType) { case ST_BOOLEAN : - lval->basicType = OT_bool; - break; case ST_COMPARISON : + case ST_EQUALITY : lval->basicType = OT_bool; break; case ST_MULTIPLY : -- cgit v1.1