summaryrefslogtreecommitdiff
path: root/rational.c
diff options
context:
space:
mode:
Diffstat (limited to 'rational.c')
-rw-r--r--rational.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/rational.c b/rational.c
index 56f7c83da2..05541a81ff 100644
--- a/rational.c
+++ b/rational.c
@@ -860,11 +860,7 @@ nurat_expt(VALUE self, VALUE other)
den = ONE;
break;
}
- if (f_negative_p(den)) { /* or use normal new */
- num = f_negate(num);
- den = f_negate(den);
- }
- return f_rational_new_bang2(CLASS_OF(self), num, den);
+ return f_rational_new2(CLASS_OF(self), num, den);
}
case T_FLOAT:
case T_RATIONAL: