patches/gmp/4.2.4/110-mpf_set_str.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Mar 08 18:04:56 2009 +0000 (2009-03-08)
changeset 1250 7aca73e68147
permissions -rw-r--r--
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(+)
     1 Original patch from: mpf_set_str.c.4.diff
     2 
     3 -= BEGIN original header =-
     4 -= END original header =-
     5 
     6 diff -durN gmp-4.2.4.orig/mpf/set_str.c gmp-4.2.4/mpf/set_str.c
     7 --- gmp-4.2.4.orig/mpf/set_str.c	2008-08-25 16:11:37.000000000 +0200
     8 +++ gmp-4.2.4/mpf/set_str.c	2009-03-08 18:36:16.000000000 +0100
     9 @@ -137,7 +137,12 @@
    10        c = (unsigned char) *++str;
    11      }
    12  
    13 +  /* Default base to decimal.  */
    14 +  if (base == 0)
    15 +    base = 10;
    16 +
    17    exp_base = base;
    18 +
    19    if (base < 0)
    20      {
    21        exp_base = 10;
    22 @@ -165,10 +170,6 @@
    23  	return -1;
    24      }
    25  
    26 -  /* Default base to decimal.  */
    27 -  if (base == 0)
    28 -    base = 10;
    29 -
    30    /* Locate exponent part of the input.  Look from the right of the string,
    31       since the exponent is usually a lot shorter than the mantissa.  */
    32    expptr = NULL;