mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-21 22:59:16 +02:00
preserving exactness when adding ratios and complex numbers
This commit is contained in:
parent
65f5e9823a
commit
d669b8a788
1 changed files with 0 additions and 2 deletions
|
@ -995,8 +995,6 @@ sexp sexp_add (sexp ctx, sexp a, sexp b) {
|
||||||
#if SEXP_USE_COMPLEX
|
#if SEXP_USE_COMPLEX
|
||||||
#if SEXP_USE_RATIOS
|
#if SEXP_USE_RATIOS
|
||||||
case SEXP_NUM_RAT_CPX:
|
case SEXP_NUM_RAT_CPX:
|
||||||
a = tmp = sexp_make_flonum(ctx, sexp_ratio_to_double(a));
|
|
||||||
/* ... FALLTHROUGH ... */
|
|
||||||
#endif
|
#endif
|
||||||
case SEXP_NUM_FLO_CPX:
|
case SEXP_NUM_FLO_CPX:
|
||||||
case SEXP_NUM_FIX_CPX:
|
case SEXP_NUM_FIX_CPX:
|
||||||
|
|
Loading…
Add table
Reference in a new issue