2017-06-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/81160
* arith.c (wprecision_int_real): Set return value before
mpz_clear and then return after it.
From-SVN: r249627
+2017-06-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
+ PR fortran/81160
+ * arith.c (wprecision_int_real): Set return value before
+ mpz_clear and then return after it.
+
2017-06-15 Janus Weil <janus@gcc.gnu.org>
PR fortran/80983
static bool
wprecision_int_real (mpz_t n, mpfr_t r)
{
+ bool ret;
mpz_t i;
mpz_init (i);
mpfr_get_z (i, r, GFC_RND_MODE);
mpz_sub (i, i, n);
- return mpz_cmp_si (i, 0) != 0;
+ ret = mpz_cmp_si (i, 0) != 0;
mpz_clear (i);
-
+ return ret;
}
/* Convert integers to integers. */