diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-12 02:39:24 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-12 02:39:24 +0000 |
commit | 21e1260fb94f7d339ee60eedbba1975113ade7f1 (patch) | |
tree | 1a7302fafa10fbd9bd2628d4d65b3b17fc3dfd7f /vm_insnhelper.c | |
parent | bc7976f2c629e08262da404fa29f6ba6f4a46671 (diff) |
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
0 files changed, 0 insertions, 0 deletions