From 4804e48f0bd3effa6c0bbf60378d65eb981bd7d0 Mon Sep 17 00:00:00 2001 From: Irlan <-> Date: Wed, 16 May 2018 02:04:31 -0300 Subject: [PATCH] fix nan/inf check function --- include/bounce/common/math/math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bounce/common/math/math.h b/include/bounce/common/math/math.h index e8390dc..d65d08c 100644 --- a/include/bounce/common/math/math.h +++ b/include/bounce/common/math/math.h @@ -25,7 +25,7 @@ inline bool b3IsValid(float32 fx) { - u32 ix = *(u32*)(&fx); + i32 ix = *(i32*)(&fx); return (ix & 0x7F800000) != 0x7F800000; }