summaryrefslogtreecommitdiffhomepage
path: root/src/opcode.h
diff options
context:
space:
mode:
authorKurebayashi, Takahiro <[email protected]>2013-03-17 17:44:18 +0900
committerKurebayashi, Takahiro <[email protected]>2013-03-17 17:44:18 +0900
commit83ddef68800a7b269cb08dd987e2f8df6f291710 (patch)
treeb93e96ed8e3b801057ae336e10c7282e3d3dd26e /src/opcode.h
parent2e937a5bba696ce851178f89af1abe9d7f2bcbc2 (diff)
downloadmruby-83ddef68800a7b269cb08dd987e2f8df6f291710.tar.gz
mruby-83ddef68800a7b269cb08dd987e2f8df6f291710.zip
remove bit-shift operation.
Diffstat (limited to 'src/opcode.h')
-rw-r--r--src/opcode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opcode.h b/src/opcode.h
index d77e2451f..7c2ec204d 100644
--- a/src/opcode.h
+++ b/src/opcode.h
@@ -7,7 +7,7 @@
#ifndef OPCODE_H
#define OPCODE_H
-#define MAXARG_Bx ((1<<16)-1)
+#define MAXARG_Bx (0xffff)
#define MAXARG_sBx (MAXARG_Bx>>1) /* `sBx' is signed */
/* instructions OP:A:B:C = 7:9:9:7 (32 bits) */