mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-10 03:03:47 -08:00
Comparison between fixnums and floats is done without loss of precision
This commit is contained in:
parent
b6e8917728
commit
6516071898
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ number_equalp(cl_object x, cl_object y)
|
|||
case t_ratio:
|
||||
return 0;
|
||||
case t_shortfloat:
|
||||
return fix(x) == sf(y);
|
||||
return fix(x) == (double)sf(y);
|
||||
case t_longfloat:
|
||||
return fix(x) == lf(y);
|
||||
case t_complex:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue