summaryrefslogtreecommitdiff
path: root/set_str.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2001-02-15 22:17:41 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2001-02-15 22:17:41 +0000
commit6d5e3c42cc664032b231674bbf91e67e1557d0e1 (patch)
tree0d3271ccd99f473aaa8ea8bac30d0690b662f119 /set_str.c
parent400a2c0c3d5e957b403e5fe68bdfd348c2f3696d (diff)
downloadmpfr-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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/set_str.c b/set_str.c
index 0c0b029cf..b97081765 100644
--- a/set_str.c
+++ b/set_str.c
@@ -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 */