Skip to content

Tags: BinaryGears/mruby

Tags

3.1.0

Toggle 3.1.0's commit message
Update version and release date. (mruby 3.1.0 (2022-05-12))

3.1.0-rc2

Toggle 3.1.0-rc2's commit message
Update version to `3.1.0RC2`.

3.1.0-rc

Toggle 3.1.0-rc's commit message
Merge commit '7e7f1b2' into stable

3.0.0

Toggle 3.0.0's commit message
Update version and release date. (mruby 3.0.0 (2021-03-05))

3.0.0-rc

Toggle 3.0.0-rc's commit message
Update version to `3.0.0RC`.

3.0.0-preview

Toggle 3.0.0-preview's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request mruby#5094 from mruby-Forum/mruby3-preview

mruby 3.0.0-preview.

2.1.2

Toggle 2.1.2's commit message
Update release date.

2.1.2-rc2

Toggle 2.1.2-rc2's commit message
Use type tag for hash code in `ht_hash_func()`

The function corresponding to `ht_hash_func()` was as follows in the days of
khash implementation (before d78acc7).

  ```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 (d78acc7), 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.

2.1.2-rc

Toggle 2.1.2-rc's commit message
Update version to `2.1.2`. (mruby 2.1.2 RC)

2.1.1

Toggle 2.1.1's commit message
Update release date.