diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2020-01-19 23:36:31 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2020-01-19 23:36:31 +0000 |
commit | 1d4eda0d2362c7404a81bb0e1e308565b8a4b8f9 (patch) | |
tree | da5a6b2829fa072fe1ae806b45f6b5cc70a3e313 /Build/source/libs/gmp/gmp-src/mpq/inp_str.c | |
parent | d2777035be2644c9649530be7f9fa31c8abaaf63 (diff) |
gmp-6.2.0
git-svn-id: svn://tug.org/texlive/trunk@53461 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/gmp/gmp-src/mpq/inp_str.c')
-rw-r--r-- | Build/source/libs/gmp/gmp-src/mpq/inp_str.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Build/source/libs/gmp/gmp-src/mpq/inp_str.c b/Build/source/libs/gmp/gmp-src/mpq/inp_str.c index 7ba95743f8f..b7662bc9131 100644 --- a/Build/source/libs/gmp/gmp-src/mpq/inp_str.c +++ b/Build/source/libs/gmp/gmp-src/mpq/inp_str.c @@ -1,6 +1,6 @@ /* mpq_inp_str -- read an mpq from a FILE. -Copyright 2001 Free Software Foundation, Inc. +Copyright 2001, 2018 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -30,7 +30,6 @@ see https://www.gnu.org/licenses/. */ #include <stdio.h> #include <ctype.h> -#include "gmp.h" #include "gmp-impl.h" @@ -44,7 +43,7 @@ mpq_inp_str (mpq_ptr q, FILE *fp, int base) fp = stdin; SIZ(DEN(q)) = 1; - PTR(DEN(q))[0] = 1; + MPZ_NEWALLOC (DEN(q), 1)[0] = 1; nread = mpz_inp_str (mpq_numref(q), fp, base); if (nread == 0) |