[ruby-cvs:72777] shyouhei:r65677 (trunk): char is neither signed nor unsigned

shyouhei at ruby-lang.org shyouhei at ruby-lang.org
Mon Nov 12 11:39:24 JST 2018


shyouhei	2018-11-12 11:39:24 +0900 (Mon, 12 Nov 2018)

  New Revision: 65677

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

  Log:
    char is neither signed nor unsigned
    
    read_escaped_byte() returns values of range -1...256. -1 indicates
    error.  So the function basically expects char to be 0..255 range.
    There is no such guarantee. `char` is not always unsigned.  We
    need to explicitly declare chbuf to be unsigned char.

  Modified files:
    trunk/re.c


More information about the ruby-cvs mailing list