From 51fe8f820f045451b8ed50a1eedb673d8a354bee Mon Sep 17 00:00:00 2001 From: Michiel Visser Date: Fri, 17 Nov 2023 20:08:19 +0100 Subject: [PATCH] AK: Fix compile error when using div_mod_internal<513, 256, true> --- AK/UFixedBigIntDivision.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/UFixedBigIntDivision.h b/AK/UFixedBigIntDivision.h index 0b9cc3d99a..0c133cd3ec 100644 --- a/AK/UFixedBigIntDivision.h +++ b/AK/UFixedBigIntDivision.h @@ -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; }