diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-12-15 16:32:57 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-12-15 16:32:57 +0000 |
commit | c78c0ddbc6fa21db6fda7a28a52aa2b00d3776f3 (patch) | |
tree | bd7b9a83e6a8aa2afe13d4f086fb3f50726d73d3 /inp_str.c | |
parent | 6347bb2e73249fddf866cb381df3882b7aef8f73 (diff) | |
download | mpfr-c78c0ddbc6fa21db6fda7a28a52aa2b00d3776f3.tar.gz |
Fix problem with GCC 4.0 20041212.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3142 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'inp_str.c')
-rw-r--r-- | inp_str.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -32,7 +32,7 @@ mpfr_inp_str (mpfr_ptr rop, FILE *stream, int base, mp_rnd_t rnd_mode) char *str; size_t alloc_size, str_size; int c; - size_t retval; + int retval; size_t nread; MPFR_CLEAR_FLAGS(rop); @@ -80,7 +80,7 @@ mpfr_inp_str (mpfr_ptr rop, FILE *stream, int base, mp_rnd_t rnd_mode) retval = mpfr_set_str (rop, str, base, rnd_mode); (*__gmp_free_func) (str, alloc_size); - if (retval == (size_t) -1) + if (retval == -1) return 0; /* error */ return str_size + nread - 1; |