From c3affc4d6b514d1c0ce9e22c11c9c16334b9b375 Mon Sep 17 00:00:00 2001
From: ruslantproductengine <ruslantproductengine@lindenlab.com>
Date: Tue, 5 May 2015 21:05:13 +0300
Subject: [PATCH] Hotfix for build on OSX with -Werror,-Wtautological-compare

---
 indra/llimage/llimage.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/indra/llimage/llimage.cpp b/indra/llimage/llimage.cpp
index 7645034bd97..08462c7834a 100755
--- a/indra/llimage/llimage.cpp
+++ b/indra/llimage/llimage.cpp
@@ -197,9 +197,7 @@ struct scale_info
 			{
 				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);
-- 
GitLab