]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - fold.c
Arithmetic exception flag and a plethora of tests.
[xonotic/gmqcc.git] / fold.c
diff --git a/fold.c b/fold.c
index 6d5d37ad403a4130e0fc8a989077c778f93e4831..98bbdb745ec27a48fe7e44a45f9c0f2070e0bc89 100644 (file)
--- a/fold.c
+++ b/fold.c
@@ -820,6 +820,9 @@ static bool fold_check_except_float(sfloat_t (*callback)(sfloat_state_t *, sfloa
     sfloat_cast_t ca;
     sfloat_cast_t cb;
 
+    if (!OPTS_FLAG(ARITHMETIC_EXCEPTIONS))
+        return false;
+
     s.roundingmode   = SFLOAT_ROUND_NEAREST_EVEN;
     s.tiny           = SFLOAT_TBEFORE;
     s.exceptionflags = 0;