mirror of
https://github.com/false-schemers/skint.git
synced 2025-01-13 20:03:30 +01:00
div fix
This commit is contained in:
parent
c1c23eee02
commit
c03074c7c1
1 changed files with 1 additions and 1 deletions
2
i.c
2
i.c
|
@ -2015,7 +2015,7 @@ define_instruction(div) {
|
|||
long i; double d;
|
||||
if (unlikely(y == fixnum_obj(0))) fail("division by zero");
|
||||
if (fxifdv(get_fixnum_unchecked(x), get_fixnum_unchecked(y), &i, &d)) ac = fixnum_obj(i);
|
||||
else flonum_obj(d);
|
||||
else ac = flonum_obj(d);
|
||||
} else {
|
||||
double dx, dy;
|
||||
if (likely(is_flonum_obj(x))) dx = flonum_from_obj(x);
|
||||
|
|
Loading…
Reference in a new issue