[ruby-cvs:72853] shyouhei:r65753 (trunk): bignum.c: BDIGIT might or might not integer-promote

shyouhei at ruby-lang.org shyouhei at ruby-lang.org
Fri Nov 16 11:59:30 JST 2018


shyouhei	2018-11-16 11:59:30 +0900 (Fri, 16 Nov 2018)

  New Revision: 65753

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

  Log:
    bignum.c: BDIGIT might or might not integer-promote
    
    BDIGIT can be unsigned int or unsigned short, depending on BDIGIT_DBL.
    Given that, unsigned int and unsigned short are different in how
    integer promotion works.  BOGLO assumes its argument is wider than
    BDIGIT, which is not always true.  We have to force that explicitly.

  Modified files:
    trunk/bignum.c


More information about the ruby-cvs mailing list