diff --git a/libc/src/__support/big_int.h b/libc/src/__support/big_int.h index 82a5251418854a..8eeb4db9d650ba 100644 --- a/libc/src/__support/big_int.h +++ b/libc/src/__support/big_int.h @@ -732,7 +732,8 @@ struct BigInt { } LIBC_INLINE constexpr BigInt operator%=(const BigInt &other) { - return *this->div(other); + *this = *this % other; + return *this; } LIBC_INLINE constexpr BigInt &operator*=(const BigInt &other) {