[ruby-cvs:72730] shyouhei:r65630 (trunk): avoid (size_t)-- (2nd try)

shyouhei at ruby-lang.org shyouhei at ruby-lang.org
Thu Nov 8 15:22:57 JST 2018


shyouhei	2018-11-08 15:22:57 +0900 (Thu, 08 Nov 2018)

  New Revision: 65630

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

  Log:
    avoid (size_t)-- (2nd try)
    
    The decrements overflow and these variables remain ~0 when leaving the
    while loops.  They are not fatal by accident, but better replace with
    ordinal for loops.
    
    See also: https://travis-ci.org/ruby/ruby/jobs/452218871#L3246

  Modified files:
    trunk/st.c
    trunk/util.c


More information about the ruby-cvs mailing list