mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-21 14:49:18 +02:00
normalize exact (/ fixnum 1)
This commit is contained in:
parent
df31fcd3af
commit
fad9db31ae
1 changed files with 1 additions and 0 deletions
1
vm.c
1
vm.c
|
@ -1475,6 +1475,7 @@ sexp sexp_apply (sexp ctx, sexp proc, sexp args) {
|
|||
} else if (sexp_fixnump(tmp1) && sexp_fixnump(tmp2)) {
|
||||
#if SEXP_USE_RATIOS
|
||||
_ARG1 = sexp_make_ratio(ctx, tmp1, tmp2);
|
||||
_ARG1 = sexp_ratio_normalize(ctx, _ARG1, SEXP_FALSE);
|
||||
#else
|
||||
#if SEXP_USE_FLONUMS
|
||||
tmp1 = sexp_fixnum_to_flonum(ctx, tmp1);
|
||||
|
|
Loading…
Add table
Reference in a new issue