patches/gmp/4.2.4/110-mpf_set_str.patch
changeset 3285 a8cb9039fade
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gmp/4.2.4/110-mpf_set_str.patch	Tue Feb 11 21:34:48 2014 +0100
     1.3 @@ -0,0 +1,32 @@
     1.4 +Original patch from: mpf_set_str.c.4.diff
     1.5 +
     1.6 +-= BEGIN original header =-
     1.7 +-= END original header =-
     1.8 +
     1.9 +diff -durN gmp-4.2.4.orig/mpf/set_str.c gmp-4.2.4/mpf/set_str.c
    1.10 +--- gmp-4.2.4.orig/mpf/set_str.c	2008-08-25 16:11:37.000000000 +0200
    1.11 ++++ gmp-4.2.4/mpf/set_str.c	2009-03-08 18:36:16.000000000 +0100
    1.12 +@@ -137,7 +137,12 @@
    1.13 +       c = (unsigned char) *++str;
    1.14 +     }
    1.15 + 
    1.16 ++  /* Default base to decimal.  */
    1.17 ++  if (base == 0)
    1.18 ++    base = 10;
    1.19 ++
    1.20 +   exp_base = base;
    1.21 ++
    1.22 +   if (base < 0)
    1.23 +     {
    1.24 +       exp_base = 10;
    1.25 +@@ -165,10 +170,6 @@
    1.26 + 	return -1;
    1.27 +     }
    1.28 + 
    1.29 +-  /* Default base to decimal.  */
    1.30 +-  if (base == 0)
    1.31 +-    base = 10;
    1.32 +-
    1.33 +   /* Locate exponent part of the input.  Look from the right of the string,
    1.34 +      since the exponent is usually a lot shorter than the mantissa.  */
    1.35 +   expptr = NULL;