1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 03:04:57 +00:00

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

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;
}