summaryrefslogtreecommitdiff
path: root/init.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2000-02-11 17:11:45 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2000-02-11 17:11:45 +0000
commit2681ac2eac00bec65f83c73d0be7490cfa958aa6 (patch)
treeee3c86ec7cdd2b99f7aa8d62b1f9c7fab6b87f5a /init.c
parent97bd41529e18ed73ccca21aef63a6624c3e1c36b (diff)
downloadmpfr-2681ac2eac00bec65f83c73d0be7490cfa958aa6.tar.gz
unsigned long int -> mp_prec_t
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@467 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'init.c')
-rw-r--r--init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/init.c b/init.c
index e416511c7..b69f4278e 100644
--- a/init.c
+++ b/init.c
@@ -26,14 +26,14 @@ MA 02111-1307, USA. */
void
#if __STDC__
-mpfr_init2 (mpfr_t x, unsigned long int p)
+mpfr_init2 (mpfr_t x, mp_prec_t p)
#else
mpfr_init2 (x, p)
mpfr_t x;
- unsigned long int p;
+ mp_prec_t p;
#endif
{
- unsigned long xsize;
+ mp_prec_t xsize;
if (p==0) {
printf("*** cannot initialize mpfr with precision 0\n"); exit(1);
@@ -41,7 +41,7 @@ mpfr_init2 (x, p)
xsize = (p - 1)/BITS_PER_MP_LIMB + 1;
- x -> _mp_prec = p;
+ PREC(x) = p;
x -> _mp_d = (mp_ptr) (*_mp_allocate_func)
(xsize * BYTES_PER_MP_LIMB);
x -> _mp_size = xsize;