summaryrefslogtreecommitdiff
path: root/libquadmath/math/ldexpq.c
diff options
context:
space:
mode:
Diffstat (limited to 'libquadmath/math/ldexpq.c')
-rw-r--r--libquadmath/math/ldexpq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libquadmath/math/ldexpq.c b/libquadmath/math/ldexpq.c
index 73f52e509bf..394d4590cca 100644
--- a/libquadmath/math/ldexpq.c
+++ b/libquadmath/math/ldexpq.c
@@ -14,6 +14,7 @@
* ====================================================
*/
+#include <errno.h>
#include "quadmath-imp.h"
__float128
@@ -21,6 +22,6 @@ ldexpq (__float128 value, int exp)
{
if(!finiteq(value)||value==0.0Q) return value;
value = scalbnq(value,exp);
- /* if(!__finitel(value)||value==0.0Q) __set_errno (ERANGE); */
+ if(!finiteq(value)||value==0.0Q) errno = ERANGE;
return value;
}