1. 02 Dec, 2019 2 commits
    • KOBAYASHI Shuji's avatar
      Silence Clang warning with `MRB_INT32` and `MRB_64BIT` in `time.c` · 69735390
      KOBAYASHI Shuji authored
      Silence the following warning:
      
        ```
        /mruby/mrbgems/mruby-time/src/time.c:258:60: warning: result of comparison of constant -9223372036854775808 with expression of type 'mrb_int' (aka 'int') is always false [-Wtautological-constant-out-of-range-compare]
              if ((mrb_time_int)i > MRB_TIME_MAX || MRB_TIME_MIN > i) {
                                                    ~~~~~~~~~~~~ ^ ~
        ```
      69735390
    • Yukihiro "Matz" Matsumoto's avatar
      Merge pull request #4848 from... · 3c678728
      Yukihiro "Matz" Matsumoto authored
      Merge pull request #4848 from shuujii/fix-MRB_FIXNUM_SHIFT-with-MRB_WORD_BOXING-MRB_INT32-and-MRB_64BIT
      
      Fix `MRB_FIXNUM_SHIFT` with `MRB_WORD_BOXING`, `MRB_INT32` and `MRB_64BIT`
      3c678728
  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