1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-28 16:00:22 +02:00

* numbers.c (s_scm_integer_expt): (expt 0 1) should be 1.

This commit is contained in:
Rob Browning 2002-10-05 04:27:35 +00:00
parent 9bc548798d
commit 20bf9a3cfe

View file

@ -1245,7 +1245,7 @@ SCM_DEFINE (scm_integer_expt, "integer-expt", 2, 0, 0,
int i2;
#ifdef SCM_BIGDIG
if (SCM_EQ_P (n, SCM_INUM0) || SCM_EQ_P (n, acc))
return n;
return acc;
else if (SCM_EQ_P (n, SCM_MAKINUM (-1L)))
return SCM_FALSEP (scm_even_p (k)) ? n : acc;
#endif