Take variables in account in corpus changes detection

* src/abg-comparison.cc (corpus_diff::length): Take changes about
	variables into account.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2014-08-29 09:45:27 +02:00
parent bc7694e14c
commit 926ea2811e

View File

@ -6592,7 +6592,10 @@ corpus_diff::length() const
{
return (priv_->deleted_fns_.size()
+ priv_->added_fns_.size()
- priv_->changed_fns_.size());
+ priv_->changed_fns_.size()
+ priv_->deleted_vars_.size()
+ priv_->added_vars_.size()
+ priv_->changed_vars_.size());
}
/// Report the diff in a serialized form.