diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-12-06 08:01:01 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-12-07 08:19:16 +0900 |
| commit | 9935cf1aeffbc0072d93c408a24f287e9d6fe5eb (patch) | |
| tree | da4c593f54e854ee929ba5cfcbccdaff86d528ac /src/array.c | |
| parent | 856ae52021e2e75934f22158ff78a1adbd86ce22 (diff) | |
| download | mruby-9935cf1aeffbc0072d93c408a24f287e9d6fe5eb.tar.gz mruby-9935cf1aeffbc0072d93c408a24f287e9d6fe5eb.zip | |
variable.c: avoid redundant iv scan in `mrb_mod_cv_set()`.
Now `iv_get()` returns `pos+1` if it finds the entry, so you don't need
to call `iv_put()`. You can replace the entry value by assigning to
`t->ptr[pos-1]`.
Diffstat (limited to 'src/array.c')
0 files changed, 0 insertions, 0 deletions
