Fix wrong deleted functions count when diffing corpora

* src/abg-comparison.cc
	(corpus_diff::priv::ensure_lookup_tables_populated): If a function
	has changed, deleted it from the list the removed functions.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2014-02-13 11:11:56 +01:00
parent 7a05284c8a
commit 7f59e159f2

View File

@ -4168,6 +4168,7 @@ corpus_diff::priv::ensure_lookup_tables_populated()
if (*j->second != *added_fn)
changed_fns_[j->first] = std::make_pair(j->second,
added_fn);
deleted_fns_.erase(j);
}
else
added_fns_[n] = added_fn;