[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] when reading a float with ieee754f, always return quiet NaN


---
 ieee754.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/ieee754.c b/ieee754.c
index 7995bd8..aa1fb74 100644
--- a/ieee754.c
+++ b/ieee754.c
@@ -22,8 +22,6 @@ float ieee754f(unsigned long b)
 
 	if (exp == 0xff) {
 		if (n) {
-			/* TODO: work out what a negative NaN means */
-			assert(!isneg);
 			return NAN;
 		} else {
 			return isneg ? -INFINITY : INFINITY;
-- 
2.15.1 (Apple Git-101)