mathematics: Don't use division by zero in NAN/INFINITY macros

Some compilers, MSVC among them, don't recognize the divisions by
zero as meaning infinity/nan.

These macros should, according to the standard, expand to constant
expressions, but this shouldn't matter for our usage.

Signed-off-by: Martin Storsjö <martin@martin.st>
pull/59/head
Ronald S. Bultje 13 years ago committed by Martin Storsjö
parent 710bd8a33e
commit a1245d5ca1
Loading…
Cancel
Save