summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorruslantproductengine <ruslantproductengine@lindenlab.com>2015-05-05 21:09:33 +0300
committerruslantproductengine <ruslantproductengine@lindenlab.com>2015-05-05 21:09:33 +0300
commit6de01b2b12f12e3a31259dd040c0d1014b3bab60 (patch)
tree309af683e4f9ac107a8e77ca13965fcdd345ae53 /indra
parenta6a428910cccdbf4ef137399c09be185226dd8f5 (diff)
Hotfix for build on OSX with -Werror,-Wtautological-compare
Diffstat (limited to 'indra')
-rwxr-xr-xindra/llimage/llimage.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/indra/llimage/llimage.cpp b/indra/llimage/llimage.cpp
index 7645034bd9..08462c7834 100755
--- a/indra/llimage/llimage.cpp
+++ b/indra/llimage/llimage.cpp
@@ -197,9 +197,7 @@ private:
{
pos = val >> 16;
- if (pos < 0)
- vp[j] = 0;
- else if (pos >= (srcSz - 1))
+ if (pos >= (srcSz - 1))
vp[j] = 0;
else
vp[j] = (val >> 8) - ((val >> 8) & 0xffffff00);