Commit b66cf7b2 authored by Davis King's avatar Davis King

Relaxed requires clause slightly

parent 65914e72
...@@ -94,7 +94,7 @@ namespace dlib ...@@ -94,7 +94,7 @@ namespace dlib
double value double value
) )
{ {
DLIB_CASSERT(0 < value && value < 1); DLIB_CASSERT(0 < value && value <= 1);
max_object_height = value; max_object_height = value;
} }
......
...@@ -176,7 +176,7 @@ namespace dlib ...@@ -176,7 +176,7 @@ namespace dlib
); );
/*! /*!
requires requires
- 0 < value < 1 - 0 < value <= 1
ensures ensures
- #get_max_object_height() == value - #get_max_object_height() == value
!*/ !*/
......
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