summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-11-20 08:48:05 +0900
committerGitHub <[email protected]>2021-11-20 08:48:05 +0900
commitc6c789d2e84085831351740684b72f9a5086cd2d (patch)
tree459f7a5c86bc77de46c9049897ee4744eedc51d7 /include
parent1a1ff6b3ff410ce46c4978cb2ff58dc36868b916 (diff)
parent6fba0dbece522265f641927ff3716c3718301998 (diff)
downloadmruby-c6c789d2e84085831351740684b72f9a5086cd2d.tar.gz
mruby-c6c789d2e84085831351740684b72f9a5086cd2d.zip
Merge pull request #5579 from dearblue/OP_ASET
Fixed a discrepancy in `OP_ASET`
Diffstat (limited to 'include')
-rw-r--r--include/mruby/ops.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mruby/ops.h b/include/mruby/ops.h
index f62d8cdfa..7f3b77bf6 100644
--- a/include/mruby/ops.h
+++ b/include/mruby/ops.h
@@ -89,7 +89,7 @@ OPCODE(ARYCAT, B) /* ary_cat(R[a],R[a+1]) */
OPCODE(ARYPUSH, BB) /* ary_push(R[a],R[a+1]..R[a+b]) */
OPCODE(ARYDUP, B) /* R[a] = ary_dup(R[a]) */
OPCODE(AREF, BBB) /* R[a] = R[b][c] */
-OPCODE(ASET, BBB) /* R[a][c] = R[b] */
+OPCODE(ASET, BBB) /* R[b][c] = R[a] */
OPCODE(APOST, BBB) /* *R[a],R[a+1]..R[a+c] = R[a][b..] */
OPCODE(INTERN, B) /* R[a] = intern(R[a]) */
OPCODE(SYMBOL, BB) /* R[a] = intern(Pool[b]) */