From 688d5d5c543e2fe304e301a31b35a5b4e0bc7bb0 Mon Sep 17 00:00:00 2001 From: PKEuS Date: Sat, 31 Jan 2015 12:36:22 +0100 Subject: [PATCH] matchcompiler.py: Added missing parantheses --- tools/matchcompiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/matchcompiler.py b/tools/matchcompiler.py index 64b6bbbff..227fae1f8 100755 --- a/tools/matchcompiler.py +++ b/tools/matchcompiler.py @@ -119,7 +119,7 @@ class MatchCompiler: elif tok == '%name%': return 'tok->isName()' elif tok == '%var%': - return 'tok->varId() != 0' + return '(tok->varId() != 0)' elif tok == '%varid%': return '(tok->isName() && tok->varId()==varid)' elif (len(tok) > 2) and (tok[0] == "%"):