Merge pull request #5578 from dearblue/OP_SENDB

Fixes keywords are lost with the `OP_SENDB`
This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-11-20 08:50:42 +09:00
committed by GitHub
+1 -1
View File
@@ -1573,7 +1573,7 @@ RETRY_TRY_BLOCK:
mrb_value recv;
if (0 < nk && nk < 15) { /* pack keyword arguments */
mrb_int kidx = a+n+1;
mrb_int kidx = a+(n==15?1:n)+1;
mrb_value kdict = hash_new_from_values(mrb, nk, regs+kidx);
regs[kidx] = kdict;
nk = 15;