summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-04-08 02:11:46 -0500
committerDave Parks <davep@lindenlab.com>2011-04-08 02:11:46 -0500
commit8807496ed78b36658f488d901842852d63f73cb9 (patch)
tree91b200383b0e8b79733f6bf9952ce947b5b8ede4 /indra
parent0ce8e962399e6cd8e231b529d9741b033fa4aa8f (diff)
attempted fix for linux build
Diffstat (limited to 'indra')
-rw-r--r--indra/llmath/llmath.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llmath/llmath.h b/indra/llmath/llmath.h
index 97001b4062..eea7c977fb 100644
--- a/indra/llmath/llmath.h
+++ b/indra/llmath/llmath.h
@@ -510,8 +510,8 @@ inline void ll_remove_outliers(std::vector<VEC_TYPE>& data, F32 k)
VEC_TYPE Q1 = data[data.size()/4];
VEC_TYPE Q3 = data[data.size()-data.size()/4-1];
- VEC_TYPE min = Q1-k*(Q3-Q1);
- VEC_TYPE max = Q3+k*(Q3-Q1);
+ VEC_TYPE min = (VEC_TYPE) ((F32) Q1-k * (F32) (Q3-Q1));
+ VEC_TYPE max = (VEC_TYPE) ((F32) Q3+k * (F32) (Q3-Q1));
U32 i = 0;
while (i < data.size() && data[i] < min)