summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/math/lround.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/math/lround.c b/src/math/lround.c
index 04a5e178..f62c8d40 100644
--- a/src/math/lround.c
+++ b/src/math/lround.c
@@ -58,7 +58,9 @@ dtype fn(type x)
x = roundit(x);
return (dtype)x;
} else {
+#ifdef FE_INVALID
feraiseexcept(FE_INVALID);
+#endif
return DTYPE_MAX;
}
}