mirror of https://github.com/davisking/dlib.git
Changed the check for the radius being zero a little more robust against
floating point weirdness. --HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403983
This commit is contained in:
parent
d89dbfa333
commit
28633602fa
|
@ -282,7 +282,7 @@ namespace dlib
|
||||||
|
|
||||||
// something has gone horribly wrong if the radius has shrunk to zero. So just
|
// something has gone horribly wrong if the radius has shrunk to zero. So just
|
||||||
// give up if that happens.
|
// give up if that happens.
|
||||||
if (static_cast<type>(radius) == 0)
|
if (static_cast<type>(radius) <= std::numeric_limits<type>::min())
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue