big: Improved zero_unused helper.

This commit is contained in:
Jeroen van Rijn
2021-08-11 20:59:53 +02:00
parent 4be48973ad
commit 9890e7cfeb
8 changed files with 181 additions and 149 deletions
+1 -1
View File
@@ -323,7 +323,7 @@ int_shr_digit :: proc(quotient: ^Int, digits: int) -> (err: Error) {
quotient.digit[x] = quotient.digit[x + digits];
}
quotient.used -= digits;
_zero_unused(quotient);
zero_unused(quotient);
return clamp(quotient);
}
shr_digit :: proc { int_shr_digit, };