Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 608770 | Differences between
and this patch

Collapse All | Expand All

(-)mpfr-3.1.5-a/PATCHES (+1 lines)
Line 0 Link Here
1
vasprintf
(-)mpfr-3.1.5-a/VERSION (-1 / +1 lines)
Line 1 Link Here
1
3.1.5
1
3.1.5-p1
(-)mpfr-3.1.5-a/src/mpfr.h (-1 / +1 lines)
Lines 27-33 Link Here
27
#define MPFR_VERSION_MAJOR 3
27
#define MPFR_VERSION_MAJOR 3
28
#define MPFR_VERSION_MINOR 1
28
#define MPFR_VERSION_MINOR 1
29
#define MPFR_VERSION_PATCHLEVEL 5
29
#define MPFR_VERSION_PATCHLEVEL 5
30
#define MPFR_VERSION_STRING "3.1.5"
30
#define MPFR_VERSION_STRING "3.1.5-p1"
31
31
32
/* Macros dealing with MPFR VERSION */
32
/* Macros dealing with MPFR VERSION */
33
#define MPFR_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
33
#define MPFR_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
(-)mpfr-3.1.5-a/src/vasprintf.c (-1 / +1 lines)
Lines 1593-1599 Link Here
1593
        }
1593
        }
1594
      else if (spec.spec == 'f' || spec.spec == 'F')
1594
      else if (spec.spec == 'f' || spec.spec == 'F')
1595
        {
1595
        {
1596
          if (spec.prec == -1)
1596
          if (spec.prec < 0)
1597
            spec.prec = 6;
1597
            spec.prec = 6;
1598
          if (regular_fg (np, p, spec, NULL) == -1)
1598
          if (regular_fg (np, p, spec, NULL) == -1)
1599
            goto error;
1599
            goto error;
(-)mpfr-3.1.5-a/src/version.c (-1 / +1 lines)
Lines 25-29 Link Here
25
const char *
25
const char *
26
mpfr_get_version (void)
26
mpfr_get_version (void)
27
{
27
{
28
  return "3.1.5";
28
  return "3.1.5-p1";
29
}
29
}
(-)mpfr-3.1.5-a/tests/tsprintf.c (+20 lines)
Lines 1251-1256 Link Here
1251
  check_emin_aux (MPFR_EMIN_MIN);
1251
  check_emin_aux (MPFR_EMIN_MIN);
1252
}
1252
}
1253
1253
1254
static void
1255
test20161214 (void)
1256
{
1257
  mpfr_t x;
1258
  char buf[32];
1259
  const char s[] = "0x0.fffffffffffff8p+1024";
1260
  int r;
1261
1262
  mpfr_init2 (x, 64);
1263
  mpfr_set_str (x, s, 16, MPFR_RNDN);
1264
  r = mpfr_snprintf (buf, 32, "%.*RDf", -2, x);
1265
  MPFR_ASSERTN(r == 316);
1266
  r = mpfr_snprintf (buf, 32, "%.*RDf", INT_MIN + 1, x);
1267
  MPFR_ASSERTN(r == 316);
1268
  r = mpfr_snprintf (buf, 32, "%.*RDf", INT_MIN, x);
1269
  MPFR_ASSERTN(r == 316);
1270
  mpfr_clear (x);
1271
}
1272
1254
int
1273
int
1255
main (int argc, char **argv)
1274
main (int argc, char **argv)
1256
{
1275
{
Lines 1271-1276 Link Here
1271
  mixed ();
1290
  mixed ();
1272
  check_emax ();
1291
  check_emax ();
1273
  check_emin ();
1292
  check_emin ();
1293
  test20161214 ();
1274
1294
1275
#if defined(HAVE_LOCALE_H) && defined(HAVE_SETLOCALE)
1295
#if defined(HAVE_LOCALE_H) && defined(HAVE_SETLOCALE)
1276
#if MPFR_LCONV_DPTS
1296
#if MPFR_LCONV_DPTS

Return to bug 608770