mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
use fabsl instead of abs on long double
This commit is contained in:
parent
8a9d8c0979
commit
b1307a67f5
1 changed files with 1 additions and 1 deletions
2
sexp.c
2
sexp.c
|
@ -2478,7 +2478,7 @@ sexp sexp_read_float_tail (sexp ctx, sexp in, double whole, int negp) {
|
|||
#endif
|
||||
}
|
||||
if (e != 0.0)
|
||||
val = abs(e) > 320 ? exp(log(val) + e*M_LN10) : val * pow(10, e);
|
||||
val = fabsl(e) > 320 ? exp(log(val) + e*M_LN10) : val * pow(10, e);
|
||||
#if SEXP_USE_FLONUMS
|
||||
res = sexp_make_flonum(ctx, val);
|
||||
#else
|
||||
|
|
Loading…
Add table
Reference in a new issue