summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2009-06-25 18:30:17 +0200
committerPetr Machata <pmachata@redhat.com>2009-06-25 18:30:17 +0200
commit1f073fe89dd30ce83ac3b109236cdf688ab5ddeb (patch)
treee14dec162aa4853af9eb0b5db97e4d7981dce625
parenteb0b3cc8b61a2c47ff413384236ca5ed291177d0 (diff)
downloadelfutils-1f073fe89dd30ce83ac3b109236cdf688ab5ddeb.tar.gz
Two nits.
-rw-r--r--libdw/c++/dwarf_comparator2
-rw-r--r--libdw/c++/dwarf_tracker2
2 files changed, 2 insertions, 2 deletions
diff --git a/libdw/c++/dwarf_comparator b/libdw/c++/dwarf_comparator
index 11261b42..827ddf39 100644
--- a/libdw/c++/dwarf_comparator
+++ b/libdw/c++/dwarf_comparator
@@ -428,7 +428,7 @@ namespace elfutils
const die1 &a = *ref1;
const die2 &b = *ref2;
- if (a.identity () == a.identity ()) // Object identity.
+ if (a.identity () == b.identity ()) // Object identity.
return true;
// Simplest mismatches with the cheapest checks first.
diff --git a/libdw/c++/dwarf_tracker b/libdw/c++/dwarf_tracker
index 1c2d563e..4432d4e1 100644
--- a/libdw/c++/dwarf_tracker
+++ b/libdw/c++/dwarf_tracker
@@ -214,7 +214,7 @@ namespace elfutils
const right_context_type &b)
{
- return a.size () != a.size ();
+ return a.size () != b.size ();
}
// Full match when context_quick_mismatch has returned false.