summaryrefslogtreecommitdiff
path: root/libinterp
diff options
context:
space:
mode:
authorValery Ushakov <uwe@stderr.spb.ru>2017-08-17 00:13:41 +0300
committerValery Ushakov <uwe@stderr.spb.ru>2017-08-17 00:13:41 +0300
commit4a062f32e3dd93bf371feb27f3ccc28d7930099e (patch)
tree3f82934c7fd112eecc65efa0db68ed759028f76e /libinterp
parentc12c42236c5882afe34356ec8e4088a6ac9c3629 (diff)
parent8823998c509302a526d8711095f664dd06997234 (diff)
Merged with inferno-os/inferno-os via default.
Diffstat (limited to 'libinterp')
-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;