AK: Fix compile error when using div_mod_internal<513, 256, true>

This commit is contained in:
Michiel Visser 2023-11-17 20:08:19 +01:00 committed by Ali Mohammad Pur
parent e785172290
commit 51fe8f820f
Notes: sideshowbarker 2024-07-16 23:59:28 +09:00

View File

@ -39,7 +39,7 @@ constexpr void div_mod_internal(
if (dividend_len < divisor_len) { // dividend < divisor
StorageOperations::set(0, quotient);
if constexpr (restore_remainder)
remainder = operand1;
StorageOperations::copy(operand1, remainder);
return;
}