diff options
author | Neil Jerram <neil@ossau.uklinux.net> | 2008-09-17 21:46:40 +0100 |
---|---|---|
committer | Neil Jerram <neil@ossau.uklinux.net> | 2008-09-22 21:21:20 +0100 |
commit | 1dd797921c950f0a4d396faa6d7326ec6928e771 (patch) | |
tree | 74601a98f426ae788dfa69f46e47b5f3ff61a160 /libguile/strings.c | |
parent | f8c01b6f683e9a7e6962a70703cdad1f76771319 (diff) | |
download | guile-1dd797921c950f0a4d396faa6d7326ec6928e771.tar.gz |
Fix for incorrect (gcd -2) => -2; should give 2.
(reported by Bill Schottstaedt)
* libguile/numbers.c (scm_gcd): When only one arg given, use scm_abs
to ensure that result is non-negative.
* test-suite/tests/numbers.test ("gcd"): New test, (gcd -2).
Diffstat (limited to 'libguile/strings.c')
0 files changed, 0 insertions, 0 deletions