[ruby-cvs:65151] nobu:r57985 (trunk): rational.c: zero division

nobu at ruby-lang.org nobu at ruby-lang.org
Thu Mar 16 10:53:52 JST 2017


nobu	2017-03-16 10:53:52 +0900 (Thu, 16 Mar 2017)

  New Revision: 57985

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

  Log:
    rational.c: zero division
    
    * rational.c (read_rat_nos): denominator cannot be 0, raise zero
      division in that case.

  Modified files:
    trunk/rational.c
    trunk/test/ruby/test_rational.rb


More information about the ruby-cvs mailing list