aboutsummaryrefslogtreecommitdiff
path: root/ljumptab.h
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 /ljumptab.h
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 'ljumptab.h')
-rw-r--r--ljumptab.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ljumptab.h b/ljumptab.h
index 8306f250..a24828bb 100644
--- a/ljumptab.h
+++ b/ljumptab.h
@@ -57,8 +57,8 @@ static const void *const disptab[NUM_OPCODES] = {
57&&L_OP_BANDK, 57&&L_OP_BANDK,
58&&L_OP_BORK, 58&&L_OP_BORK,
59&&L_OP_BXORK, 59&&L_OP_BXORK,
60&&L_OP_SHRI,
61&&L_OP_SHLI, 60&&L_OP_SHLI,
61&&L_OP_SHRI,
62&&L_OP_ADD, 62&&L_OP_ADD,
63&&L_OP_SUB, 63&&L_OP_SUB,
64&&L_OP_MUL, 64&&L_OP_MUL,