Skip to content

Commit

Permalink
Remove set but unused variable
Browse files Browse the repository at this point in the history
This `prec` has not been used since 1f5c46d.
  • Loading branch information
nobu authored and mrkn committed Apr 8, 2023
1 parent fb8ad50 commit 08a0ad5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions ext/bigdecimal/bigdecimal.c
Original file line number Diff line number Diff line change
Expand Up @@ -7171,7 +7171,6 @@ VpSqrt(Real *y, Real *x)
Real *r = NULL;
size_t y_prec;
SIGNED_VALUE n, e;
SIGNED_VALUE prec;
ssize_t nr;
double val;

Expand Down Expand Up @@ -7210,12 +7209,6 @@ VpSqrt(Real *y, Real *x)
nr = 0;
y_prec = y->MaxPrec;

prec = x->exponent - (ssize_t)y_prec;
if (x->exponent > 0)
++prec;
else
--prec;

VpVtoD(&val, &e, x); /* val <- x */
e /= (SIGNED_VALUE)BASE_FIG;
n = e / 2;
Expand Down

0 comments on commit 08a0ad5

Please sign in to comment.