[ruby-cvs:49684] nobu:r42542 (trunk): random.c: coerce before check negative

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Aug 13 22:13:04 JST 2013


nobu	2013-08-13 22:13:02 +0900 (Tue, 13 Aug 2013)

  New Revision: 42542

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

  Log:
    random.c: coerce before check negative
    
    * random.c (rb_random_ulong_limited): coerce before check negative.
      [Fixes GH-379]

  Modified files:
    trunk/ChangeLog
    trunk/random.c
    trunk/test/ruby/test_array.rb


More information about the ruby-cvs mailing list