]> sourceware.org Git - systemtap.git/commitdiff
Fix operator precedence issue introduced by commit 6469522cf.
authorMartin Cermak <mcermak@redhat.com>
Mon, 2 Nov 2015 15:40:22 +0000 (16:40 +0100)
committerMartin Cermak <mcermak@redhat.com>
Mon, 2 Nov 2015 15:40:22 +0000 (16:40 +0100)
parse.cxx

index b08bae1d4313476bdd796f159edba16afe775b78..b8ecd7d19c152b193ee0fa23b96264f53aa99841 100644 (file)
--- a/parse.cxx
+++ b/parse.cxx
@@ -2185,7 +2185,7 @@ void
 parser::parse_private (vector <vardecl*>& globals, vector<probe*>& probes, string & fname, vector<functiondecl*>& 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 <vardecl*>& globals, vector<probe*>& 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);
   }
This page took 0.032526 seconds and 5 git commands to generate.