diff options
| author | Charles Forsyth <charles.forsyth@gmail.com> | 2017-02-21 14:18:10 +0000 |
|---|---|---|
| committer | Charles Forsyth <charles.forsyth@gmail.com> | 2017-02-21 14:18:10 +0000 |
| commit | 6e6ec18053fc212e0a58124162dbafc2c2c30aed (patch) | |
| tree | 73b386481006d60687bf42c211c629b9c97bbd3c /libinterp/runt.c | |
| parent | 2fd8fca57f985a360d40d2d10e99fcda2a1d99c4 (diff) | |
| parent | 322254a191e29f4eabbe5dd05962f1212937a6d8 (diff) | |
Merged in yk/inferno-os (pull request #13)
emu: windows scroll wheel + 21-bit rune fixes
Approved-by: Charles Forsyth
Diffstat (limited to 'libinterp/runt.c')
| -rw-r--r-- | libinterp/runt.c | 2 |
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; |
