diff options
author | Mikael Morin <mikael@gcc.gnu.org> | 2010-07-12 14:31:00 +0000 |
---|---|---|
committer | Mikael Morin <mikael@gcc.gnu.org> | 2010-07-12 14:31:00 +0000 |
commit | 04a17bb6ed69f59efbffbe5ace2ea82b2e4590c7 (patch) | |
tree | 0fc232ee9ef3dc9ba3986b121b5e23aae499a07f /gcc/fortran/expr.c | |
parent | 872cc2d3c9ec0567a6ad43c8e0faa200fedc6367 (diff) | |
download | gcc-04a17bb6ed69f59efbffbe5ace2ea82b2e4590c7.zip gcc-04a17bb6ed69f59efbffbe5ace2ea82b2e4590c7.tar.gz gcc-04a17bb6ed69f59efbffbe5ace2ea82b2e4590c7.tar.bz2 |
expr.c (gfc_get_int_expr): Don't initialize mpfr data twice.
2010-07-12 Mikael Morin <mikael@gcc.gnu.org>
* expr.c (gfc_get_int_expr): Don't initialize mpfr data twice.
* resolve.c (build_default_init_expr): Ditto.
From-SVN: r162081
Diffstat (limited to 'gcc/fortran/expr.c')
-rw-r--r-- | gcc/fortran/expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/expr.c b/gcc/fortran/expr.c index 39fc749..cb7305e 100644 --- a/gcc/fortran/expr.c +++ b/gcc/fortran/expr.c @@ -215,7 +215,7 @@ gfc_get_int_expr (int kind, locus *where, int value) p = gfc_get_constant_expr (BT_INTEGER, kind, where ? where : &gfc_current_locus); - mpz_init_set_si (p->value.integer, value); + mpz_set_si (p->value.integer, value); return p; } |