[ruby-cvs:72834] shyouhei:r65734 (trunk): bignum.c: ee should be signed

shyouhei at ruby-lang.org shyouhei at ruby-lang.org
Thu Nov 15 14:10:40 JST 2018


shyouhei	2018-11-15 14:10:40 +0900 (Thu, 15 Nov 2018)

  New Revision: 65734

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

  Log:
    bignum.c: ee should be signed
    
    In C, signed + unsigned of the same size results in unsigned (cf:
    ISO/IEC 9899:1990 section 6.2.1.5). However `num` is signed here.
    Which means the addition must be done in signed.

  Modified files:
    trunk/bignum.c


More information about the ruby-cvs mailing list