Skip to content
Snippets Groups Projects
Commit c3affc4d authored by ruslantproductengine's avatar ruslantproductengine
Browse files

Hotfix for build on OSX with -Werror,-Wtautological-compare

parent eb70b5e7
No related branches found
No related tags found
No related merge requests found
...@@ -197,9 +197,7 @@ struct scale_info ...@@ -197,9 +197,7 @@ struct scale_info
{ {
pos = val >> 16; pos = val >> 16;
if (pos < 0) if (pos >= (srcSz - 1))
vp[j] = 0;
else if (pos >= (srcSz - 1))
vp[j] = 0; vp[j] = 0;
else else
vp[j] = (val >> 8) - ((val >> 8) & 0xffffff00); vp[j] = (val >> 8) - ((val >> 8) & 0xffffff00);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment