[ruby-cvs:72851] shyouhei:r65751 (trunk): avoid division by zero

shyouhei at ruby-lang.org shyouhei at ruby-lang.org
Fri Nov 16 10:52:39 JST 2018


shyouhei	2018-11-16 10:52:39 +0900 (Fri, 16 Nov 2018)

  New Revision: 65751

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

  Log:
    avoid division by zero
    
    * cvt(): use signbit() instead of 1/d < 0
    * w_float(): ditto
    * ruby_float_step_size(): unit==0 check shall be prior to divisions
    * arith_seq_float_step_size(): ditto
    * rb_big_divide(): same as r65642
    * fix_divide(): ditto
    * rb_big_fdiv_double(): ditto
    * fix_fdiv_double(): ditto

  Modified files:
    trunk/bignum.c
    trunk/enumerator.c
    trunk/marshal.c
    trunk/numeric.c
    trunk/vsnprintf.c


More information about the ruby-cvs mailing list