mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 19:19:53 +00:00
Fix compilier warning on -Os, gcc.
This commit is contained in:
parent
9e6b1d1b16
commit
2e1ec3700d
@ -125,7 +125,7 @@ static void bignat_div(struct BigNat *mant, uint32_t divisor) {
|
|||||||
int32_t i;
|
int32_t i;
|
||||||
uint32_t quotient, remainder;
|
uint32_t quotient, remainder;
|
||||||
uint64_t dividend;
|
uint64_t dividend;
|
||||||
remainder = 0;
|
remainder = 0, quotient = 0;
|
||||||
for (i = mant->n - 1; i >= 0; i--) {
|
for (i = mant->n - 1; i >= 0; i--) {
|
||||||
dividend = ((uint64_t)remainder * BIGNAT_BASE) + mant->digits[i];
|
dividend = ((uint64_t)remainder * BIGNAT_BASE) + mant->digits[i];
|
||||||
if (i < mant->n - 1) mant->digits[i + 1] = quotient;
|
if (i < mant->n - 1) mant->digits[i + 1] = quotient;
|
||||||
|
Loading…
Reference in New Issue
Block a user