[ruby-cvs:69753] mrkn:r62581 (trunk): Check the result of to_int in Kernel#Integer

mrkn at ruby-lang.org mrkn at ruby-lang.org
Mon Feb 26 16:31:10 JST 2018


mrkn	2018-02-26 16:31:10 +0900 (Mon, 26 Feb 2018)

  New Revision: 62581

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62581

  Log:
    Check the result of to_int in Kernel#Integer
    
    [ruby-core:85813] [Bug #14552]
    
    * object.c (rb_convert_to_integer):
      Check the result of to_int in Kernel#Integer
    
    * test/ruby/test_integer.rb: add tests.
    
    * spec/ruby/core/kernel/Integer_spec.rb: fix examples.

  Modified files:
    trunk/object.c
    trunk/spec/ruby/core/kernel/Integer_spec.rb
    trunk/test/ruby/test_integer.rb


More information about the ruby-cvs mailing list