1 commit 917b505c86a70dda2191d380861af05becc03858
2 Author: Karim Belabas <Karim.Belabas@math.u-bordeaux1.fr>
3 Date: Mon Mar 12 23:54:11 2012 +0100
5 ispower(x < 0,, &n): n could have the wrong sign [#1302]
7 diff --git a/src/basemath/arith1.c b/src/basemath/arith1.c
8 index ded946b..5502ba5 100644
9 --- a/src/basemath/arith1.c
10 +++ b/src/basemath/arith1.c
11 @@ -1109,6 +1109,7 @@ Z_isanypower(GEN x, GEN *pty)
12 *pty = gerepileuptoint(av, y);
15 + if (pty) togglesign_safe(pty);
17 if (pty) *pty = gerepilecopy(av, *pty); else avma = av;
19 diff --git a/src/test/32/ispower b/src/test/32/ispower
20 index bf4b6f0..84d8de7 100644
21 --- a/src/test/32/ispower
22 +++ b/src/test/32/ispower
32 -Total time spent: 3236
33 +Total time spent: 3012