Fixed incorrect assert

This commit is contained in:
Davis King 2012-02-02 19:28:22 -05:00
parent 29cc76cd32
commit 1afa8aca9a
1 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ namespace dlib
) const ) const
{ {
// make sure requires clause is not broken // make sure requires clause is not broken
DLIB_ASSERT(current_n() > 1, DLIB_ASSERT(current_n() > 0,
"\tT running_stats::max" "\tT running_stats::max"
<< "\n\tyou have to add some numbers to this object first" << "\n\tyou have to add some numbers to this object first"
<< "\n\tthis: " << this << "\n\tthis: " << this
@ -103,7 +103,7 @@ namespace dlib
) const ) const
{ {
// make sure requires clause is not broken // make sure requires clause is not broken
DLIB_ASSERT(current_n() > 1, DLIB_ASSERT(current_n() > 0,
"\tT running_stats::min" "\tT running_stats::min"
<< "\n\tyou have to add some numbers to this object first" << "\n\tyou have to add some numbers to this object first"
<< "\n\tthis: " << this << "\n\tthis: " << this