mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-20 22:29:16 +02:00
Fixing typo in read-char for 4-byte utf8 values.
This commit is contained in:
parent
926785804d
commit
a5f6ba93e5
1 changed files with 1 additions and 1 deletions
2
eval.c
2
eval.c
|
@ -1755,7 +1755,7 @@ sexp sexp_read_utf8_char (sexp ctx, sexp port, int i) {
|
|||
i = ((i&0x1F)<<12) + ((sexp_read_char(ctx, port)&0x3F)<<6);
|
||||
i += sexp_read_char(ctx, port)&0x3F;
|
||||
} else {
|
||||
i = ((i&0x0F)<<16) + ((sexp_read_char(ctx, port)&0x3F)<<6);
|
||||
i = ((i&0x0F)<<16) + ((sexp_read_char(ctx, port)&0x3F)<<12);
|
||||
i += (sexp_read_char(ctx, port)&0x3F)<<6;
|
||||
i += sexp_read_char(ctx, port)&0x3F;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue