]> git.mxchange.org Git - simgear.git/commit
Melchior points out that NaN/Inf behavior is not platform-independent.
authorandy <andy>
Fri, 30 Mar 2007 16:42:22 +0000 (16:42 +0000)
committerandy <andy>
Fri, 30 Mar 2007 16:42:22 +0000 (16:42 +0000)
commita5f9262adbc87af945e4124c1ad291d0a14a061c
tree050b0af61eb8db69abaa52478a4bff28e7b21168
parentb05e32fa8c11e6d66bb70850751e170dc472a1a3
Melchior points out that NaN/Inf behavior is not platform-independent.
So toss a runtime error ("floating point error") when any of the math
library functions produce a non-finite value.  Note that these are not
the only locations that can do that (simply dividing by zero will
produce an Inf), but it's still proper behavior.
simgear/nasal/mathlib.c