Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Upgrade PARI to version 2.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jdemeyer committed Apr 6, 2017
1 parent 343f241 commit 543c4a1
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 27 deletions.
6 changes: 3 additions & 3 deletions build/pkgs/pari/checksums.ini
@@ -1,4 +1,4 @@
tarball=pari-VERSION.tar.gz
sha1=ad6af366153ae160aaa4cb49edf3a32a69f7afc1
md5=f997d6b526df6cd9145af0de5b822bf4
cksum=2625551585
sha1=6e5f9b227bb1afe9a8fb67fe1239211714601142
md5=fec030cfa01fa1815552c7aa362d8bf9
cksum=3798015133
2 changes: 1 addition & 1 deletion build/pkgs/pari/package-version.txt
@@ -1 +1 @@
2.9.1.p3
2.9.2.p0
20 changes: 0 additions & 20 deletions build/pkgs/pari/patches/dilog_prec.patch

This file was deleted.

20 changes: 20 additions & 0 deletions build/pkgs/pari/patches/fflush.patch
@@ -0,0 +1,20 @@
commit c8ddd6e4952a8731f5e99ff17cfa37cb430b47aa
Author: Bill Allombert <Bill.Allombert@math.u-bordeaux1.fr>
Date: Tue Mar 28 10:42:54 2017 +0200

GP was incorrectly issuing fflush(NULL) (From Erik Bray)

diff --git a/src/language/es.c b/src/language/es.c
index 38f3737..77bcf8f 100644
--- a/src/language/es.c
+++ b/src/language/es.c
@@ -532,7 +532,8 @@ _puts_log(const char *s)
fputs(s, f);
}
static void
-_flush_log(void) { (void)fflush(pari_logfile); }
+_flush_log(void)
+{ if (pari_logfile != NULL) (void)fflush(pari_logfile); }

static void
normalOutC(char c) { putc(c, pari_outfile); _putc_log(c); }
2 changes: 1 addition & 1 deletion build/pkgs/pari/patches/pari_str_1.patch
Expand Up @@ -332,7 +332,7 @@ index 90ce368..e1bfc8d 100644
+str_long(pari_str *S, long e)
{
if (e >= 0) str_ulong(S, (ulong)e);
else { str_putc(S, '-'); str_ulong(S, (ulong)(-e)); }
else { str_putc(S, '-'); str_ulong(S, -(ulong)e); }
}

static void
Expand Down
4 changes: 2 additions & 2 deletions src/sage/libs/pari/tests.py
Expand Up @@ -166,9 +166,9 @@
doctest:...: DeprecationWarning: the PARI/GP function elllseries is obsolete (2016-08-08)
0.402838047956645
sage: e.elllseries(1, precision=128)
3.19632265064095 E-40
-6.17606670058278 E-39
sage: e.elllseries(1, precision=256)
8.68747983667209 E-79
-2.05598131842639 E-77
sage: e.elllseries(-2)
0
sage: e.elllseries(2.1, A=1.1)
Expand Down

0 comments on commit 543c4a1

Please sign in to comment.