Minor change to avoid warnings from visual studio.

This commit is contained in:
Davis King 2016-10-08 14:26:33 -04:00
parent fee64827b7
commit c22b94c93f

View File

@ -1022,7 +1022,7 @@ namespace dlib
// Figure out how far we go on the first column. We go until the next image can // Figure out how far we go on the first column. We go until the next image can
// fit next to the previous one, which means we can double back for the second // fit next to the previous one, which means we can double back for the second
// column of images. // column of images.
if (i.nc() <= img.nc()-prev_width-padding && if (i.nc() <= img.nc()-prev_width-(long)padding &&
(height-img.nr())*2 >= (total_height-img.nr())) (height-img.nr())*2 >= (total_height-img.nr()))
{ {
break; break;