summaryrefslogtreecommitdiff
path: root/byterun/lexing.c
diff options
context:
space:
mode:
Diffstat (limited to 'byterun/lexing.c')
-rw-r--r--byterun/lexing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/byterun/lexing.c b/byterun/lexing.c
index 56033d51ac..9105bce603 100644
--- a/byterun/lexing.c
+++ b/byterun/lexing.c
@@ -38,7 +38,7 @@ struct lexing_table {
value lex_check;
};
-#ifdef ARCH_BIG_ENDIAN
+#if defined(ARCH_BIG_ENDIAN) || SIZEOF_SHORT != 2
#define Short(tbl,n) \
(*((unsigned char *)((tbl) + (n) * 2)) + \
(*((schar *)((tbl) + (n) * 2 + 1)) << 8))