expt / integer-expt fixes
authorAndy Wingo <wingo@pobox.com>
Thu, 10 Jun 2010 16:14:02 +0000 (18:14 +0200)
committerAndy Wingo <wingo@pobox.com>
Thu, 10 Jun 2010 16:14:02 +0000 (18:14 +0200)
commit5a8fc758b094b7bdba83d63d385016960434ce9d
treeb5355f5030bc8a658e23e96c81f2d2e5766e9b41
parent02fcbf78b27788c03563e5c3d297a4cd469ce562
expt / integer-expt fixes

* libguile/numbers.c (scm_integer_expt): Validate the first arg as a
  number.
  (scm_expt): Delegate to scm_integer_expt iff x is exact. Fixes
  fractions.test, which I broke recently

* test-suite/tests/numbers.test ("integer-expt"): Add test for
  (integer-expt #t 0).
libguile/numbers.c
test-suite/tests/numbers.test