r8651: fixed a boolean expression bug (submitted upstream)
authorAndrew Tridgell <tridge@samba.org>
Wed, 20 Jul 2005 11:55:20 +0000 (11:55 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:29:50 +0000 (13:29 -0500)
(This used to be commit bd4c388cd2653823e012f1cd8c14832ee032eb11)

source4/lib/appweb/ejs/ejsParser.c

index 1f110e7ac427b5b4ed335348e4abcd75482eebad..dadd3eac11d9a163ca84e818da9f2de92b9841c3 100644 (file)
@@ -1641,6 +1641,9 @@ static int evalExpr(Ejs *ep, MprVar *lhs, int rel, MprVar *rhs)
                case EJS_EXPR_NOTEQ:
                        lval = lhs->type != rhs->type;
                        break;
+               case EJS_EXPR_BOOL_COMP:
+                       lval =  ! mprVarToBool(rhs);
+                       break;
                default:
                        lval = 0;
                }