Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
0713e8c9
Commit
0713e8c9
authored
13 years ago
by
nyx
Browse files
Options
Downloads
Patches
Plain Diff
BUILDFIX: fixing build for linux, casting doubles as parameters to abs
parent
9d44be19
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/llprimitive/llmodel.h
+1
-1
1 addition, 1 deletion
indra/llprimitive/llmodel.h
with
1 addition
and
1 deletion
indra/llprimitive/llmodel.h
+
1
−
1
View file @
0713e8c9
...
@@ -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-5
f
;
const
float
epsilon
=
1e-5
f
;
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment