summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornyx <none@none>2011-07-29 17:21:27 -0400
committernyx <none@none>2011-07-29 17:21:27 -0400
commit0713e8c97a75cb209c5d36fba0bdf20dc107a981 (patch)
tree6603baf97daccd8c0affcfd624716115bc0e6635
parent9d44be190367b911ff087b17c3d083c093df3c3b (diff)
BUILDFIX: fixing build for linux, casting doubles as parameters to abs
-rw-r--r--indra/llprimitive/llmodel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llprimitive/llmodel.h b/indra/llprimitive/llmodel.h
index 90c1c252ed..74e5657d28 100644
--- a/indra/llprimitive/llmodel.h
+++ b/indra/llprimitive/llmodel.h
@@ -225,7 +225,7 @@ public:
bool areEqual( double a, double b )
{
const float epsilon = 1e-5f;
- return (abs(a - b) > epsilon) && (a < b);
+ return (abs((int)(a - b)) > epsilon) && (a < b);
}
//Make sure that we return false for any values that are within the tolerance for equivalence
bool operator() ( const LLVector3& a, const LLVector3& b )