bug#25786: [PATCH] use of abs() in numbers.c: should be labs()

2017-02-21 Thread Andy Wingo
On Sat 18 Feb 2017 18:46, Matt Wette writes: > In libguile/numbers.c abs() is used for long argument where labs() should be > used. > A patch is included below for guile-2.1.7. Applied. Thank you! Andy

bug#25786: [PATCH] use of abs() in numbers.c: should be labs()

2017-02-18 Thread Matt Wette
In libguile/numbers.c abs() is used for long argument where labs() should be used. A patch is included below for guile-2.1.7. /* Returns log(n/d), for exact non-zero integers n and d */ static SCM log_of_fraction (SCM n, SCM d) { long n_size = scm_to_long (scm_integer_length (n)); long d_si