mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
handle #x+0 (fixes issue #309)
This commit is contained in:
parent
8a739d2698
commit
83c5792673
1 changed files with 2 additions and 0 deletions
2
sexp.c
2
sexp.c
|
@ -2463,6 +2463,8 @@ sexp sexp_read_number (sexp ctx, sexp in, int base, int exactp) {
|
||||||
if (c == '-') {
|
if (c == '-') {
|
||||||
negativep = 1;
|
negativep = 1;
|
||||||
c = sexp_read_char(ctx, in);
|
c = sexp_read_char(ctx, in);
|
||||||
|
} else if (c == '+') {
|
||||||
|
c = sexp_read_char(ctx, in);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if SEXP_USE_COMPLEX
|
#if SEXP_USE_COMPLEX
|
||||||
|
|
Loading…
Add table
Reference in a new issue