1. 09 Dec, 2019 6 commits
  2. 08 Dec, 2019 3 commits
  3. 07 Dec, 2019 2 commits
  4. 05 Dec, 2019 3 commits
  5. 04 Dec, 2019 1 commit
    • KOBAYASHI Shuji's avatar
      Refine `mrb_alloca()` · a030446a
      KOBAYASHI Shuji authored
      * The allocated memory is guaranteed to be aligned for any data type (it was
        not guaranteed when string type is embed).
      * Make allocation size exactly specified size (does not allocate space for a
        null byte).
      a030446a
  6. 03 Dec, 2019 3 commits
    • Yukihiro "Matz" Matsumoto's avatar
      Merge pull request #4850 from shuujii/silence-Clang-warning-with-MRB_INT64-and-MRB_32BIT-in-time.c · bc22991a
      Yukihiro "Matz" Matsumoto authored
      Silence Clang warning with `MRB_INT64` and `MRB_32BIT` in `time.c`
      bc22991a
    • KOBAYASHI Shuji's avatar
      Silence Clang warning with `MRB_INT64` and `MRB_32BIT` in `time.c` · ea1911d2
      KOBAYASHI Shuji authored
      Silence the following warnings:
      
        ```
        /mruby/mrbgems/mruby-time/src/time.c:871:15: warning: result of comparison of constant 9223372036854775807 with expression of type 'time_t' (aka 'long') is always false [-Wtautological-constant-out-of-range-compare]
          if (tm->sec > MRB_INT_MAX || tm->sec < MRB_INT_MIN) {
              ~~~~~~~ ^ ~~~~~~~~~~~
        /mruby/mrbgems/mruby-time/src/time.c:871:40: warning: result of comparison of constant -9223372036854775808 with expression of type 'time_t' (aka 'long') is always false [-Wtautological-constant-out-of-range-compare]
          if (tm->sec > MRB_INT_MAX || tm->sec < MRB_INT_MIN) {
                                       ~~~~~~~ ^ ~~~~~~~~~~~
        /mruby/mrbgems/mruby-time/src/time.c:887:16: warning: result of comparison of constant 9223372036854775807 with expression of type 'time_t' (aka 'long') is always false [-Wtautological-constant-out-of-range-compare]
          if (tm->usec > MRB_INT_MAX || tm->usec < MRB_INT_MIN) {
              ~~~~~~~~ ^ ~~~~~~~~~~~
        /mruby/mrbgems/mruby-time/src/time.c:887:42: warning: result of comparison of constant -9223372036854775808 with expression of type 'time_t' (aka 'long') is always false [-Wtautological-constant-out-of-range-compare]
          if (tm->usec > MRB_INT_MAX || tm->usec < MRB_INT_MIN) {
                                      ~~~~~~~~ ^ ~~~~~~~~~~~
        ```
      ea1911d2
    • Yukihiro "Matz" Matsumoto's avatar
      Merge pull request #4849 from shuujii/silence-Clang-warning-with-MRB_INT32-and-MRB_64BIT-in-time.c · 54f2ed6a
      Yukihiro "Matz" Matsumoto authored
      Silence Clang warning with `MRB_INT32` and `MRB_64BIT` in `time.c`
      54f2ed6a
  7. 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
  8. 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
  9. 30 Nov, 2019 3 commits
  10. 29 Nov, 2019 3 commits
  11. 28 Nov, 2019 1 commit
  12. 27 Nov, 2019 3 commits
  13. 25 Nov, 2019 4 commits
  14. 24 Nov, 2019 2 commits
  15. 23 Nov, 2019 3 commits