summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2011-12-13 13:28:14 -0800
committerKaz Kylheku <kaz@kylheku.com>2011-12-13 13:28:14 -0800
commit5d0f219ab35f9e214a063e968286ba01f4b54dbf (patch)
treed0dfd4ef57363ad4c4154436808b3a584f8d6920
parentd581aa02b11d67bb097867c44267c4d4cad7c329 (diff)
downloadtxr-5d0f219ab35f9e214a063e968286ba01f4b54dbf.tar.gz
txr-5d0f219ab35f9e214a063e968286ba01f4b54dbf.tar.bz2
txr-5d0f219ab35f9e214a063e968286ba01f4b54dbf.zip
* arith.c (expt): Fix broken bignum x fixnum combination.
-rw-r--r--ChangeLog4
-rw-r--r--arith.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4ab164b0..9fa763cb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2011-12-13 Kaz Kylheku <kaz@kylheku.com>
+ * arith.c (expt): Fix broken bignum x fixnum combination.
+
+2011-12-13 Kaz Kylheku <kaz@kylheku.com>
+
* Makefile (repatch): New phony target.
(distclean): Remove mpi directory.
diff --git a/arith.c b/arith.c
index edbd71d8..27034a2a 100644
--- a/arith.c
+++ b/arith.c
@@ -862,7 +862,7 @@ val expt(val anum, val bnum)
return anum;
n = make_bignum();
if (sizeof (int_ptr_t) <= sizeof (mp_digit)) {
- mp_expt_d(mp(bnum), b, mp(n));
+ mp_expt_d(mp(anum), b, mp(n));
} else {
mp_int tmpb;
mp_init(&tmpb);