• dearblue's avatar
    Fix boundary check for `OP_LOADI16`; ref fa8668c7 · e2aecaca
    dearblue authored
    It was making a negative integer if the highest-order bit of a 16-bit
    integer was 1.
    
    no patched:
    
    ```ruby
    p 0x7fff  # => 32767
    p 0x8000  # => -32768
    p 0xffff  # => -1
    p 0x10000 # => 65536
    ```
    e2aecaca
codegen.c 71.7 KB