mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-06 20:56:38 +02:00
off by one error on last patch
This commit is contained in:
parent
0299d42807
commit
340ab8404c
1 changed files with 1 additions and 1 deletions
2
sexp.c
2
sexp.c
|
@ -1645,7 +1645,7 @@ sexp sexp_read_raw (sexp ctx, sexp in) {
|
|||
#if SEXP_USE_BIGNUMS
|
||||
if (sexp_bignump(res)) {
|
||||
if ((sexp_bignum_hi(res) == 1)
|
||||
&& sexp_bignum_data(res)[0] == SEXP_MAX_FIXNUM)
|
||||
&& (sexp_bignum_data(res)[0] == (SEXP_MAX_FIXNUM+1)))
|
||||
res = sexp_make_fixnum(-sexp_bignum_data(res)[0]);
|
||||
else
|
||||
sexp_bignum_sign(res) = -sexp_bignum_sign(res);
|
||||
|
|
Loading…
Add table
Reference in a new issue