mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-12 23:47:34 +02:00
fixing sign of (- bignum flonum) (issue 31)
This commit is contained in:
parent
7d4a34a175
commit
2d8c382978
1 changed files with 1 additions and 1 deletions
|
@ -564,7 +564,7 @@ sexp sexp_sub (sexp ctx, sexp a, sexp b) {
|
|||
r = sexp_bignum_normalize(sexp_bignum_sub(ctx, NULL, a, tmp));
|
||||
break;
|
||||
case SEXP_NUM_BIG_FLO:
|
||||
r = sexp_make_flonum(ctx, sexp_flonum_value(b) - sexp_bignum_to_double(a));
|
||||
r = sexp_make_flonum(ctx, sexp_bignum_to_double(a) - sexp_flonum_value(b));
|
||||
break;
|
||||
case SEXP_NUM_BIG_BIG:
|
||||
r = sexp_bignum_normalize(sexp_bignum_sub(ctx, NULL, a, b));
|
||||
|
|
Loading…
Add table
Reference in a new issue