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]`.
Showing
Please register or sign in to comment