From 03b1e11a90d6286b626bce84e61006b06f3d71c8 Mon Sep 17 00:00:00 2001 From: div0 Date: Mon, 9 Nov 2009 07:36:49 +0000 Subject: [PATCH] better isnan() git-svn-id: svn://svn.icculus.org/nexuiz/trunk@8262 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/common/mathlib.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/qcsrc/common/mathlib.qc b/data/qcsrc/common/mathlib.qc index 6a58a7b41..99d70c948 100644 --- a/data/qcsrc/common/mathlib.qc +++ b/data/qcsrc/common/mathlib.qc @@ -40,7 +40,7 @@ int isinf(float x) } int isnan(float x) { - return isunordered(x, x); + return !(x == x); } int isnormal(float x) { -- 2.17.1