mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
internal/rational.h: insert assertions in RATIONAL_SET_{NUM,DEN}
This commit is contained in:
parent
fbc00c2d86
commit
07ce51c5aa
3 changed files with 17 additions and 1 deletions
|
@ -37,7 +37,6 @@
|
|||
|
||||
#define GMP_GCD_DIGITS 1
|
||||
|
||||
#define INT_POSITIVE_P(x) (FIXNUM_P(x) ? FIXNUM_POSITIVE_P(x) : BIGNUM_POSITIVE_P(x))
|
||||
#define INT_ZERO_P(x) (FIXNUM_P(x) ? FIXNUM_ZERO_P(x) : rb_bigzero_p(x))
|
||||
|
||||
VALUE rb_cRational;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue