oops. implement Compare method correctly

This commit is contained in:
Mathieu Lacage
2010-07-09 10:33:35 +02:00
parent edb157f108
commit c2a5c1ff92

View File

@@ -117,7 +117,7 @@ HighPrecision::Invert (uint64_t v)
int
HighPrecision::Compare (HighPrecision const &o) const
{
return m_value < o.m_value;
return (m_value < o.m_value)?-1:(m_value == o.m_value)?0:1;
}
HighPrecision
HighPrecision::Zero (void)