mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Integer unification macro
* include/ruby/ruby.h (RUBY_INTEGER_UNIFICATION): macro to tell if Integer is integrated. [ruby-core:75718][Bug #12427] * include/ruby/backward.h, internal.h (rb_cFixnum, rb_cBignum): fallback to rb_cInteger. * bignum.c, numeric.c, ext/json/generator/generator.{c,h}: use the macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ed75b6b4b0
commit
c071c05229
8 changed files with 61 additions and 11 deletions
|
@ -17,4 +17,9 @@ ruby_show_copyright_to_die(int exitcode)
|
|||
(exit(ruby_show_copyright_to_die(EXIT_SUCCESS)))
|
||||
#endif
|
||||
|
||||
#ifdef RUBY_INTEGER_UNIFICATION
|
||||
# define rb_cFixnum rb_cInteger
|
||||
# define rb_cBignum rb_cInteger
|
||||
#endif
|
||||
|
||||
#endif /* RUBY_RUBY_BACKWARD_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue