summaryrefslogtreecommitdiff
path: root/math.c
diff options
context:
space:
mode:
Diffstat (limited to 'math.c')
-rw-r--r--math.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/math.c b/math.c
index abe5f6c164..93de8b3abe 100644
--- a/math.c
+++ b/math.c
@@ -29,9 +29,9 @@ domain_check(x, msg)
double x;
const char *msg;
{
- if (!isnan(x)) return;
- else {
- if (!errno) {
+ if (!errno) {
+ if (!isnan(x)) return;
+ else {
#if defined(EDOM)
errno = EDOM;
#else