1. 14 Dec, 2019 1 commit
  2. 13 Dec, 2019 2 commits
  3. 12 Dec, 2019 1 commit
  4. 11 Dec, 2019 1 commit
  5. 10 Dec, 2019 3 commits
  6. 09 Dec, 2019 7 commits
  7. 08 Dec, 2019 3 commits
  8. 07 Dec, 2019 2 commits
  9. 05 Dec, 2019 3 commits
  10. 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
  11. 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
  12. 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
  13. 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
  14. 30 Nov, 2019 3 commits
  15. 29 Nov, 2019 3 commits
  16. 28 Nov, 2019 1 commit
  17. 27 Nov, 2019 3 commits