summaryrefslogtreecommitdiffhomepage
path: root/src/codedump.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-12-06 08:01:01 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-12-07 08:19:16 +0900
commit9935cf1aeffbc0072d93c408a24f287e9d6fe5eb (patch)
treeda4c593f54e854ee929ba5cfcbccdaff86d528ac /src/codedump.c
parent856ae52021e2e75934f22158ff78a1adbd86ce22 (diff)
downloadmruby-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/codedump.c')
0 files changed, 0 insertions, 0 deletions