Skip to content

Commit 8e99693

Browse files
wip3
1 parent 0ba8db4 commit 8e99693

File tree

1 file changed

+2
-2
lines changed
  • ext/bcmath/libbcmath/src

1 file changed

+2
-2
lines changed

ext/bcmath/libbcmath/src/sqrt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ bool bc_sqrt(bc_num *num, size_t scale)
110110

111111
size_t full_len = 0;
112112
BC_VECTOR tmp_guess_vector = guess_vector;
113-
while (tmp_guess_vector > 0) {
113+
do {
114114
tmp_guess_vector /= BASE;
115115
full_len++;
116-
}
116+
} while (tmp_guess_vector > 0);
117117

118118
size_t ret_ren = full_len - cscale;
119119
bc_num ret = bc_new_num_nonzeroed(ret_ren, rscale);

0 commit comments

Comments
 (0)