*** set_str_raw.c 2001/01/11 16:45:01 1.19 --- set_str_raw.c 2001/01/11 17:25:28 1.20 *************** *** 1,6 **** /* mpfr_set_str_raw -- set a floating-point number from a binary string ! Copyright (C) 1999 Free Software Foundation. This file is part of the MPFR Library. --- 1,6 ---- /* mpfr_set_str_raw -- set a floating-point number from a binary string ! Copyright (C) 1999-2001 Free Software Foundation. This file is part of the MPFR Library. *************** *** 98,130 **** else expn=k; endstr2 = str2; ! *str2 = (char) 0; /* end of string */ ! l = (strlen(str0) - 1) / BITS_PER_MP_LIMB + 1; str2 = str0; ! if (l > xsize) { ! fprintf (stderr, "Error: mantissa larger than precision of destination variable in mpfr_set_str_raw\n"); ! exit (1); } ! ! /* str2[0]..endstr2[-1] contains the mantissa */ ! for (k = 1; k <= l; k++) ! { ! j = 0; ! xp[xsize - k] = 0; ! while (str2 xsize) { ! fprintf (stderr, "Error: mantissa larger than precision of destination variable in mpfr_set_str_raw\n"); ! exit (1); } ! /* str2[0]..endstr2[-1] contains the mantissa */ ! for (k = 1; k <= l; k++) ! { ! j = 0; ! xp[xsize - k] = 0; ! while (str2