summaryrefslogtreecommitdiff
path: root/libinterp/runt.c
diff options
context:
space:
mode:
Diffstat (limited to 'libinterp/runt.c')
-rw-r--r--libinterp/runt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libinterp/runt.c b/libinterp/runt.c
index 81a5490b..977d642c 100644
--- a/libinterp/runt.c
+++ b/libinterp/runt.c
@@ -376,7 +376,7 @@ Sys_char2byte(void *fp)
c = f->c;
if(a == H || (UWORD)n>=a->len)
error(exBounds);
- if(c<0 || c>=(1<<16))
+ if(c<0 || c>=Runemax)
c = Runeerror;
if(c < Runeself){
a->data[n] = c;