summaryrefslogtreecommitdiff
path: root/patches/gmp/4.2.4/110-mpf_set_str.patch
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-03-08 18:04:56 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-03-08 18:04:56 (GMT)
commit20945a3465c228ca0a342dd8b3c07e2e5a81d74e (patch)
treeb86f3bf9a46466f120ff4f3502b908933ef008ae /patches/gmp/4.2.4/110-mpf_set_str.patch
parent357c8c3fbec9b5b831be318069a9f5e75596e7fb (diff)
Add patchset for MGP-4.2.4, from upstream.
/trunk/patches/gmp/4.2.4/120-perfpow.patch | 149 149 0 0 ++++++++++++++++++++++ /trunk/patches/gmp/4.2.4/110-mpf_set_str.patch | 32 32 0 0 +++++ /trunk/patches/gmp/4.2.4/100-mpf_eq.patch | 219 219 0 0 ++++++++++++++++++++++++++++++++ 3 files changed, 400 insertions(+)
Diffstat (limited to 'patches/gmp/4.2.4/110-mpf_set_str.patch')
-rw-r--r--patches/gmp/4.2.4/110-mpf_set_str.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/patches/gmp/4.2.4/110-mpf_set_str.patch b/patches/gmp/4.2.4/110-mpf_set_str.patch
new file mode 100644
index 0000000..9cb600b
--- /dev/null
+++ b/patches/gmp/4.2.4/110-mpf_set_str.patch
@@ -0,0 +1,32 @@
+Original patch from: mpf_set_str.c.4.diff
+
+-= BEGIN original header =-
+-= END original header =-
+
+diff -durN gmp-4.2.4.orig/mpf/set_str.c gmp-4.2.4/mpf/set_str.c
+--- gmp-4.2.4.orig/mpf/set_str.c 2008-08-25 16:11:37.000000000 +0200
++++ gmp-4.2.4/mpf/set_str.c 2009-03-08 18:36:16.000000000 +0100
+@@ -137,7 +137,12 @@
+ c = (unsigned char) *++str;
+ }
+
++ /* Default base to decimal. */
++ if (base == 0)
++ base = 10;
++
+ exp_base = base;
++
+ if (base < 0)
+ {
+ exp_base = 10;
+@@ -165,10 +170,6 @@
+ return -1;
+ }
+
+- /* Default base to decimal. */
+- if (base == 0)
+- base = 10;
+-
+ /* Locate exponent part of the input. Look from the right of the string,
+ since the exponent is usually a lot shorter than the mantissa. */
+ expptr = NULL;