summaryrefslogtreecommitdiffstats
path: root/byterun/parsing.c
diff options
context:
space:
mode:
Diffstat (limited to 'byterun/parsing.c')
-rw-r--r--byterun/parsing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/byterun/parsing.c b/byterun/parsing.c
index 3c1ced7d1..a857e3922 100644
--- a/byterun/parsing.c
+++ b/byterun/parsing.c
@@ -63,7 +63,7 @@ struct parser_env { /* Mirrors parser_env in ../stdlib/parsing.ml */
#if defined(ARCH_BIG_ENDIAN) || SIZEOF_SHORT != 2
#define Short(tbl,n) \
(*((unsigned char *)((tbl) + (n) * 2)) + \
- (*((schar *)((tbl) + (n) * 2 + 1)) << 8))
+ (*((signed char *)((tbl) + (n) * 2 + 1)) << 8))
#else
#define Short(tbl,n) (((short *)(tbl))[n])
#endif