summaryrefslogtreecommitdiff
path: root/src/math/ilogb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/ilogb.c')
-rw-r--r--src/math/ilogb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/math/ilogb.c b/src/math/ilogb.c
index 8c24aecb..d93b6602 100644
--- a/src/math/ilogb.c
+++ b/src/math/ilogb.c
@@ -8,6 +8,7 @@
int TGFN(ilogb)(TYPE x)
{
+ SIGNAL_SAFE(0);
switch (fpclassify(x)) {
case FP_ZERO: feraiseexcept(FE_INVALID); return FP_ILOGB0;
case FP_INFINITE: feraiseexcept(FE_INVALID); return INT_MAX;