Commit 2c39d2e7 authored by thomas.forbriger's avatar thomas.forbriger
Browse files

croposp [WP][FIX]: fix computation of total number of pairs

parent ba957ad2
......@@ -96,7 +96,7 @@ namespace croposp {
unsigned int Pairs::pairs() const
{
unsigned int retval=this->Mn*(this->Mn)/2;
unsigned int retval=(this->Mn*(this->Mn-1))/2;
return(retval);
} // unsigned int Pairs::size() const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment