• Takashi Sogabe's avatar
    Fix wrong storage of data when hex-style string is loaded · c2a6ff7a
    Takashi Sogabe authored
    This patch fixes corruption of data when hex-style string is
    loaded.
    
    I saw following phenomenon in an ubuntu/amd64 environment.
    
    Test code:
    str = "\x0\x1\x2\x03\x04\x05\x06\a\b\t\n\v\f\r\x0E\x0F\x10"
    p str[-1] == "\0x10"
    
    Output(binary program with mrbc -B):
    false
    
    Output(script with mruby):
    true
    c2a6ff7a
parse.y 108 KB