Comparison between fixnums and floats is done without loss of precision

This commit is contained in:
jjgarcia 2005-06-29 08:16:07 +00:00
parent b6e8917728
commit 6516071898

View file

@ -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: