diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2001-02-15 22:17:41 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2001-02-15 22:17:41 +0000 |
commit | 6d5e3c42cc664032b231674bbf91e67e1557d0e1 (patch) | |
tree | 0d3271ccd99f473aaa8ea8bac30d0690b662f119 /set_str.c | |
parent | 400a2c0c3d5e957b403e5fe68bdfd348c2f3696d (diff) | |
download | mpfr-6d5e3c42cc664032b231674bbf91e67e1557d0e1.tar.gz |
added const to 2nd argument of mpfr_set_str
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@991 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'set_str.c')
-rw-r--r-- | set_str.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -35,11 +35,11 @@ MA 02111-1307, USA. */ int #if __STDC__ -mpfr_set_str(mpfr_ptr x, char *str, int base, mp_rnd_t rnd_mode) +mpfr_set_str (mpfr_ptr x, __gmp_const char *str, int base, mp_rnd_t rnd_mode) #else -mpfr_set_str(x, str, base, rnd_mode) +mpfr_set_str (x, str, base, rnd_mode) mpfr_ptr x; - char *str; + __gmp_const char *str; int base; mp_rnd_t rnd_mode; #endif @@ -98,7 +98,7 @@ mpfr_set_str(x, str, base, rnd_mode) } else { expn = -k; - endptr = str; + endptr = (char*) str; } /* the number is mantissa*base^expn */ |