diff options
Diffstat (limited to 'math.c')
-rw-r--r-- | math.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -27,10 +27,10 @@ extern VALUE rb_to_float(VALUE val); static void domain_check(double x, double y, const char *msg) { - if (!isnan(y)) return; - else if (isnan(x)) return; - else { - if (!errno) { + if (!errno) { + if (!isnan(y)) return; + else if (isnan(x)) return; + else { #if defined(EDOM) errno = EDOM; #else |