summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--set_z.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/set_z.c b/set_z.c
index 5887bb850..f561dbd62 100644
--- a/set_z.c
+++ b/set_z.c
@@ -38,9 +38,10 @@ mpfr_set_z (f, z, rnd)
int fn, zn, k, dif, sign_z, sh; mp_limb_t *fp = MANT(f), *zp, cc, c2;
sign_z = mpz_cmp_ui(z,0);
+printf("sign=%d\n", sign_z);
if (sign_z==0) return (SIZE(f)=0);
fn = 1 + (PREC(f)-1)/BITS_PER_MP_LIMB;
- zn = SIZ(z);
+ zn = ABS(SIZ(z));
dif = zn-fn;
zp = PTR(z);
count_leading_zeros(k, zp[zn-1]);