aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.c
diff options
context:
space:
mode:
authorRoberto I <roberto@inf.puc-rio.br>2025-08-20 14:31:07 -0300
committerRoberto I <roberto@inf.puc-rio.br>2025-08-20 14:31:07 -0300
commit88aa4049ad3e638571bfffcf5fd8b6a8e07c6aaf (patch)
tree00f92e5383964ce918cdaa9a5d7a3eaeeb8bbbcf /lopcodes.c
parentc688b00f73205273c46d7cf5656ff5a27e90ce36 (diff)
downloadlua-88aa4049ad3e638571bfffcf5fd8b6a8e07c6aaf.tar.gz
lua-88aa4049ad3e638571bfffcf5fd8b6a8e07c6aaf.tar.bz2
lua-88aa4049ad3e638571bfffcf5fd8b6a8e07c6aaf.zip
Keep the order left-right in shifts
Opcodes OP_SHLI-OP_SHRI and the cases for opcodes OP_SHL-OP_SHR were out of order.
Diffstat (limited to 'lopcodes.c')
-rw-r--r--lopcodes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lopcodes.c b/lopcodes.c
index 092c3902..79ffbe25 100644
--- a/lopcodes.c
+++ b/lopcodes.c
@@ -53,8 +53,8 @@ LUAI_DDEF const lu_byte luaP_opmodes[NUM_OPCODES] = {
53 ,opmode(0, 0, 0, 0, 1, iABC) /* OP_BANDK */ 53 ,opmode(0, 0, 0, 0, 1, iABC) /* OP_BANDK */
54 ,opmode(0, 0, 0, 0, 1, iABC) /* OP_BORK */ 54 ,opmode(0, 0, 0, 0, 1, iABC) /* OP_BORK */
55 ,opmode(0, 0, 0, 0, 1, iABC) /* OP_BXORK */ 55 ,opmode(0, 0, 0, 0, 1, iABC) /* OP_BXORK */
56 ,opmode(0, 0, 0, 0, 1, iABC) /* OP_SHRI */
57 ,opmode(0, 0, 0, 0, 1, iABC) /* OP_SHLI */ 56 ,opmode(0, 0, 0, 0, 1, iABC) /* OP_SHLI */
57 ,opmode(0, 0, 0, 0, 1, iABC) /* OP_SHRI */
58 ,opmode(0, 0, 0, 0, 1, iABC) /* OP_ADD */ 58 ,opmode(0, 0, 0, 0, 1, iABC) /* OP_ADD */
59 ,opmode(0, 0, 0, 0, 1, iABC) /* OP_SUB */ 59 ,opmode(0, 0, 0, 0, 1, iABC) /* OP_SUB */
60 ,opmode(0, 0, 0, 0, 1, iABC) /* OP_MUL */ 60 ,opmode(0, 0, 0, 0, 1, iABC) /* OP_MUL */