[ruby-cvs:49570] nobu:r42407 (trunk): range.c: return nil for empty range

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Aug 6 22:00:01 JST 2013


nobu	2013-08-06 21:59:59 +0900 (Tue, 06 Aug 2013)

  New Revision: 42407

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42407

  Log:
    range.c: return nil for empty range
    
    * range.c (range_last): return nil for empty range, or in the case the
      predecessor is smaller than the begin.  [Bug #8739]

  Modified files:
    trunk/ChangeLog
    trunk/range.c
    trunk/test/ruby/test_range.rb


More information about the ruby-cvs mailing list