[ruby-cvs:72724] shyouhei:r65624 (trunk): avoid (size_t)--

shyouhei at ruby-lang.org shyouhei at ruby-lang.org
Thu Nov 8 14:06:52 JST 2018


shyouhei	2018-11-08 14:06:52 +0900 (Thu, 08 Nov 2018)

  New Revision: 65624

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

  Log:
    avoid (size_t)--
    
    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