From: Martin Cermak Date: Mon, 2 Nov 2015 15:40:22 +0000 (+0100) Subject: Fix operator precedence issue introduced by commit 6469522cf. X-Git-Tag: release-3.0~344 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=127e4e363d59fdbf2420edd3c52123d5f0dd029f;p=systemtap.git Fix operator precedence issue introduced by commit 6469522cf. --- diff --git a/parse.cxx b/parse.cxx index b08bae1d4..b8ecd7d19 100644 --- a/parse.cxx +++ b/parse.cxx @@ -2185,7 +2185,7 @@ void parser::parse_private (vector & globals, vector& probes, string & fname, vector& functions) { const token* t = next (); - if (! t->type == tok_keyword && t->content == "private") + if (! (t->type == tok_keyword && t->content == "private")) throw PARSE_ERROR (_("expected 'private'")); swallow (); t = next (); @@ -2200,7 +2200,7 @@ parser::parse_private (vector & globals, vector& probes, strin swallow (); context = con_global; t = next (); - if (! t->type == tok_identifier) + if (! (t->type == tok_identifier)) throw PARSE_ERROR (_("expected identifier")); do_parse_global(globals, probes, fname, t, true); }