1. 29 Jan, 2021 2 commits
    • dearblue's avatar
      Fixed `String#unpack` to handle the highest range of integer values · 9c36499e
      dearblue authored
      Previously, problems occurred when the `fixnum` was exceeded.
      
      - 32-bit cpu mode with `MRB_WORD_BOXING` and `MRB_INT32`:
      
        ```console
        % bin/mruby -e 'p [0x7fffffff].pack("N").unpack("N")'
        trace (most recent call last):
        -e:1: cannot unpack to Integer: 2147483647 (RangeError)
        ```
      
      - 64-bit cpu mode with `MRB_WORD_BOXING` and `MRB_INT64`:
      
        ```console
        % bin/mruby -e 'p [0x7fffffff_ffffffff].pack("q").unpack("q")'
        trace (most recent call last):
        -e:1: cannot unpack to Integer: 9223372036854775807 (RangeError)
        ```
      9c36499e
    • Yukihiro "Matz" Matsumoto's avatar
  2. 28 Jan, 2021 13 commits
  3. 27 Jan, 2021 13 commits
  4. 26 Jan, 2021 9 commits
  5. 25 Jan, 2021 3 commits