Fixed compiler warning

This commit is contained in:
Davis King 2017-11-10 16:52:20 -05:00
parent 809f5683d1
commit 5a0c09c775
1 changed files with 2 additions and 2 deletions

View File

@ -194,8 +194,8 @@ namespace dlib
{ {
// set to ignore if not totally in the crop or if too small. // set to ignore if not totally in the crop or if too small.
if (!get_rect(crop).contains(rect.rect) || if (!get_rect(crop).contains(rect.rect) ||
(rect.rect.height() < min_object_length_long_dim && rect.rect.width() < min_object_length_long_dim) || ((long)rect.rect.height() < min_object_length_long_dim && (long)rect.rect.width() < min_object_length_long_dim) ||
(rect.rect.height() < min_object_length_short_dim || rect.rect.width() < min_object_length_short_dim)) ((long)rect.rect.height() < min_object_length_short_dim || (long)rect.rect.width() < min_object_length_short_dim))
{ {
rect.ignore = true; rect.ignore = true;
} }