]> sourceware.org Git - libabigail.git/commitdiff
Fix status checking in abidw
authorDodji Seketeli <dodji@redhat.com>
Sun, 30 Nov 2014 09:40:58 +0000 (10:40 +0100)
committerDodji Seketeli <dodji@redhat.com>
Sun, 30 Nov 2014 18:57:04 +0000 (19:57 +0100)
Now that the status is a bit field, one needs to check the OK bit in
the status for successful operation state.  Oops.

* tools/abidw.cc (main): Fix successful status checking.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
tools/abidw.cc

index 1316439eb67ff34bd922bcd442b30a50f06047de..7a64b2e9a06fff3997dc66495fbb602f7b45e8ad 100644 (file)
@@ -179,7 +179,7 @@ main(int argc, char* argv[])
       abigail::dwarf_reader::status status =
        abigail::dwarf_reader::has_alt_debug_info(ctxt,
                                                  has_alt_di, alt_di_path);
-      if (status == abigail::dwarf_reader::STATUS_OK)
+      if (status & abigail::dwarf_reader::STATUS_OK)
        {
          if (alt_di_path.empty())
            ;
This page took 0.033871 seconds and 5 git commands to generate.