We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd58662 commit 884e909Copy full SHA for 884e909
ext/bcmath/libbcmath/src/div.c
@@ -51,7 +51,7 @@ static inline void bc_fast_div(
51
{
52
size_t numerator_top_index = numerator_arr_size - 1;
53
size_t quot_top_index = quot_arr_size - 1;
54
- for (size_t i = 0; i < quot_arr_size - 1; i++) {
+ for (size_t i = 0; i < quot_top_index; i++) {
55
if (numerator_vectors[numerator_top_index - i] < divisor_vector) {
56
quot_vectors[quot_top_index - i] = 0;
57
/* numerator_vectors[numerator_top_index - i] < divisor_vector, so there will be no overflow. */
0 commit comments