diff options
author | Kenta Murata <[email protected]> | 2020-01-17 10:47:20 +0900 |
---|---|---|
committer | Kenta Murata <[email protected]> | 2020-01-17 10:57:51 +0900 |
commit | 5275d8bf4c43db9f057d24a26cf33ecd69f8b345 () | |
tree | d77ff868dc4a32a0f8e8e5e56b3b03aca527bf15 /rational.c | |
parent | 47465ab1ccf48d2c905dbcf3b676e30b61cc41ca (diff) |
rb_rational_raw: convert num and den by to_int
-rw-r--r-- | rational.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1927,6 +1927,10 @@ rb_gcdlcm(VALUE self, VALUE other) VALUE rb_rational_raw(VALUE x, VALUE y) { if (INT_NEGATIVE_P(y)) { x = rb_int_uminus(x); y = rb_int_uminus(y); |