Sign in to follow this  
shirsoft

0 1 ???

Recommended Posts

Hmmm

If you can't trust fabs, why not write your own inline?

Something like if ((a-b)>1.0f || (b-a)>1.0f)...

that way, if something is amiss you know it's amiss, and not just because some badness happened with the fabs function or something...

--CJM

Share this post


Link to post
Share on other sites
You wouldn't happen to be running in release mode? Even though you can link in debugging symbols the debugger will sometimes (often) look in the wrong place for a variable's value because of optimisations performed by the compiler.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this