1. 06 Aug, 2020 7 commits
  2. 05 Aug, 2020 1 commit
  3. 04 Aug, 2020 3 commits
  4. 03 Aug, 2020 2 commits
  5. 31 Jul, 2020 1 commit
  6. 30 Jul, 2020 1 commit
  7. 29 Jul, 2020 3 commits
    • KOBAYASHI Shuji's avatar
      Use type tag for hash code in `ht_hash_func()` · 11212096
      KOBAYASHI Shuji authored
      The function corresponding to `ht_hash_func()` was as follows in the days of
      khash implementation (before d78acc7a).
      
        ```c
        mrb_hash_ht_hash_func(mrb_state *mrb, mrb_value key)
        {
          enum mrb_vtype t = mrb_type(key);
          ...
          switch (t) {
          ...
          default:
            hv = mrb_funcall(mrb, key, "hash", 0);
            h = (khint_t)t ^ (khint_t)mrb_fixnum(hv);
            break;
          }
          ...
        }
        ```
      
      When switched to the segmented list implementation (d78acc7a), this function
      was changed as follows.
      
        ```c
        sg_hash_func(mrb_state *mrb, seglist *t, mrb_value key)
        {
          enum mrb_vtype tt = mrb_type(key);
          ...
          switch (tt) {
          ...
          default:
            hv = mrb_funcall(mrb, key, "hash", 0);
            h = (size_t)t ^ (size_t)mrb_fixnum(hv);
            break;
          }
          ...
        }
        ```
      
      Since the argument `t` was added, the variable for type tag was changed from
      `t` to `tt`, but the variable used in the expression of `h` remained `t`.
      
      Probably this is an omission of change, so fixed it.
      11212096
    • Yukihiro "Matz" Matsumoto's avatar
    • dearblue's avatar
      Fixed shift width for `MRB_ENV_SET_BIDX()` · cdf45438
      dearblue authored
      ref c07f24cd and close #5035
      cdf45438
  8. 26 Jul, 2020 3 commits
  9. 25 Jul, 2020 2 commits
    • Yukihiro "Matz" Matsumoto's avatar
      Merge pull request #5049 from shuujii/use-type-tag-for-hash-code-in-ht_hash_func · 425b5f32
      Yukihiro "Matz" Matsumoto authored
      Use type tag for hash code in `ht_hash_func()`
      425b5f32
    • KOBAYASHI Shuji's avatar
      Use type tag for hash code in `ht_hash_func()` · 0c88c717
      KOBAYASHI Shuji authored
      The function corresponding to `ht_hash_func()` was as follows in the days of
      khash implementation (before d78acc7a).
      
        ```c
        mrb_hash_ht_hash_func(mrb_state *mrb, mrb_value key)
        {
          enum mrb_vtype t = mrb_type(key);
          ...
          switch (t) {
          ...
          default:
            hv = mrb_funcall(mrb, key, "hash", 0);
            h = (khint_t)t ^ (khint_t)mrb_fixnum(hv);
            break;
          }
          ...
        }
        ```
      
      When switched to the segmented list implementation (d78acc7a), this function
      was changed as follows.
      
        ```c
        sg_hash_func(mrb_state *mrb, seglist *t, mrb_value key)
        {
          enum mrb_vtype tt = mrb_type(key);
          ...
          switch (tt) {
          ...
          default:
            hv = mrb_funcall(mrb, key, "hash", 0);
            h = (size_t)t ^ (size_t)mrb_fixnum(hv);
            break;
          }
          ...
        }
        ```
      
      Since the argument `t` was added, the variable for type tag was changed from
      `t` to `tt`, but the variable used in the expression of `h` remained `t`.
      
      Probably this is an omission of change, so fixed it.
      0c88c717
  10. 24 Jul, 2020 6 commits
  11. 22 Jul, 2020 11 commits