1. 02 Dec, 2019 1 commit
  2. 01 Dec, 2019 1 commit
    • KOBAYASHI Shuji's avatar
      Fix `MRB_FIXNUM_SHIFT` with `MRB_WORD_BOXING`, `MRB_INT32` and `MRB_64BIT` · a53f2827
      KOBAYASHI Shuji authored
      ### Example
      
        ```ruby
        # example.rb
        max32 = 2**30 - 1 + 2**30
        min32 = -max32-1
        [max32, max32+1, min32, min32-1].each{|n| p [n, n.class]}
        ```
      
      #### Before this patch:
      
        ```
        $ bin/mruby example.rb
        [2147483647, Float]
        [2147483648, Float]
        [-2147483648, Float]
        [-2147483649, Float]
        ```
      
      #### After this patch:
      
        ```
        $ bin/mruby example.rb
        [2147483647, Fixnum]
        [2147483648, Float]
        [-2147483648, Fixnum]
        [-2147483649, Float]
        ```
      a53f2827
  3. 30 Nov, 2019 3 commits
  4. 29 Nov, 2019 3 commits
  5. 28 Nov, 2019 1 commit
  6. 27 Nov, 2019 3 commits
  7. 25 Nov, 2019 4 commits
  8. 24 Nov, 2019 2 commits
  9. 23 Nov, 2019 3 commits
  10. 22 Nov, 2019 3 commits
  11. 21 Nov, 2019 1 commit
    • KOBAYASHI Shuji's avatar
      Introduce `mrb_ssize` type for buffer size on memory; ref #4483 · a2df2470
      KOBAYASHI Shuji authored
      Previously, `mrb_int` was used as the type that represents the buffer size
      on memory, but the sizes of `RString` and `RArray` exceed 6 words when
      `MRB_INT64` is enabled on 32-bit CPU.
      
      I don't think it is necessary to be able to represent the buffer size on
      memory that exceeds the virtual address space. Therefore, for this purpose,
      introduce `mrb_ssize` which doesn't exceed the sizes of `mrb_int` and
      pointer.
      
      I think all `mrb_int` used for this purpose should be changed to
      `mrb_ssize`, but currently only the members of the structures (`RString`,
      `mrb_shared_string`, `RArray` and `mrb_shared_array`) are changed.
      a2df2470
  12. 20 Nov, 2019 1 commit
  13. 19 Nov, 2019 4 commits
  14. 18 Nov, 2019 2 commits
  15. 17 Nov, 2019 2 commits
  16. 16 Nov, 2019 2 commits
  17. 15 Nov, 2019 1 commit
  18. 14 Nov, 2019 2 commits
  19. 13 Nov, 2019 1 commit