app-misc/nci: bump 1.4.1 -> 1.5.0
[sgilles-overlay.git] / sci-mathematics / pari / files / pari-2.5.1-1302.patch
blob245e587d275c6734ac5acff9abe48f7ce7c881be
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);
13 return k;
15 + if (pty) togglesign_safe(pty);
17 if (pty) *pty = gerepilecopy(av, *pty); else avma = av;
18 return k;
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
23 @@ -1118,7 +1118,7 @@
24 [2, 999]
25 [6, 10]
26 [3, -4]
27 -[3, 2]
28 -[3, 21218]
29 +[3, -2]
30 +[3, -21218]
31 [3, -1/4]
32 -Total time spent: 3236
33 +Total time spent: 3012