internal/rational.h: insert assertions in RATIONAL_SET_{NUM,DEN}

This commit is contained in:
Kenta Murata 2020-01-17 09:55:50 +09:00
parent fbc00c2d86
commit 07ce51c5aa
No known key found for this signature in database
GPG key ID: CEFE8AFB6081B062
3 changed files with 17 additions and 1 deletions

View file

@ -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;