summaryrefslogtreecommitdiff
path: root/ext/ByteLoader/bytecode.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ByteLoader/bytecode.h')
-rw-r--r--ext/ByteLoader/bytecode.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/ByteLoader/bytecode.h b/ext/ByteLoader/bytecode.h
index 73f3544294..5a779aa0df 100644
--- a/ext/ByteLoader/bytecode.h
+++ b/ext/ByteLoader/bytecode.h
@@ -72,6 +72,14 @@ typedef IV IV64;
} \
} STMT_END
+#if IVSIZE == 4
+# define BGET_IV(arg) BGET_I32(arg)
+#else
+# if IVSIZE == 8
+# define BGET_IV(arg) BGET_IV64(arg)
+# endif
+#endif
+
#define BGET_op_tr_array(arg) do { \
unsigned short *ary; \
New(666, ary, 256, unsigned short); \