[ruby-cvs:69119] shyouhei:r61938 (trunk): INFINITY is float. That of double is HUGE_VAL.

shyouhei at ruby-lang.org shyouhei at ruby-lang.org
Fri Jan 19 10:45:37 JST 2018


shyouhei	2018-01-19 10:45:36 +0900 (Fri, 19 Jan 2018)

  New Revision: 61938

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

  Log:
    INFINITY is float. That of double is HUGE_VAL.
    
    It seems HUGE_VAL is already used. Why not eliminate INTINITY.
    NAN is also float. That of double is called nan(). This is also
    fixed.
    
    Signed-off-by: Urabe, Shyouhei <shyouhei at ruby-lang.org>

  Modified files:
    trunk/array.c
    trunk/bignum.c
    trunk/configure.ac
    trunk/enum.c
    trunk/enumerator.c
    trunk/include/ruby/missing.h
    trunk/marshal.c
    trunk/math.c
    trunk/numeric.c
    trunk/rational.c
    trunk/vm_eval.c


More information about the ruby-cvs mailing list