summaryrefslogtreecommitdiff
path: root/inp_str.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-12-15 16:32:57 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-12-15 16:32:57 +0000
commitc78c0ddbc6fa21db6fda7a28a52aa2b00d3776f3 (patch)
treebd7b9a83e6a8aa2afe13d4f086fb3f50726d73d3 /inp_str.c
parent6347bb2e73249fddf866cb381df3882b7aef8f73 (diff)
downloadmpfr-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/inp_str.c b/inp_str.c
index 6af5f0036..1b3951953 100644
--- a/inp_str.c
+++ b/inp_str.c
@@ -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;