Skip to content
Snippets Groups Projects
Commit 0713e8c9 authored by nyx's avatar nyx
Browse files

BUILDFIX: fixing build for linux, casting doubles as parameters to abs

parent 9d44be19
No related branches found
No related tags found
No related merge requests found
...@@ -225,7 +225,7 @@ class LLModel : public LLVolume ...@@ -225,7 +225,7 @@ class LLModel : public LLVolume
bool areEqual( double a, double b ) bool areEqual( double a, double b )
{ {
const float epsilon = 1e-5f; 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 //Make sure that we return false for any values that are within the tolerance for equivalence
bool operator() ( const LLVector3& a, const LLVector3& b ) bool operator() ( const LLVector3& a, const LLVector3& b )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment