Commit 3128410b authored by Davis King's avatar Davis King

A minor change to avoid compiler warnings from gcc

parent 3ecaaa0b
...@@ -69,7 +69,7 @@ namespace dlib ...@@ -69,7 +69,7 @@ namespace dlib
// if the interpolation goes outside img // if the interpolation goes outside img
if (!get_rect(img).contains(rectangle(left,top,right,bottom))) if (!(left >= 0 && top >= 0 && right < img.nc() && bottom < img.nr()))
return false; return false;
const double lr_frac = p.x() - left; const double lr_frac = p.x() - left;
...@@ -105,7 +105,7 @@ namespace dlib ...@@ -105,7 +105,7 @@ namespace dlib
// if the interpolation goes outside img // if the interpolation goes outside img
if (!get_rect(img).contains(rectangle(left,top,right,bottom))) if (!(left >= 0 && top >= 0 && right < img.nc() && bottom < img.nr()))
return false; return false;
const double lr_frac = p.x() - left; const double lr_frac = p.x() - left;
......
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