diff --git a/libc/src/__support/CPP/bitset.h b/libc/src/__support/CPP/bitset.h index cfac749e0d84e..30a7fa796cb4b 100644 --- a/libc/src/__support/CPP/bitset.h +++ b/libc/src/__support/CPP/bitset.h @@ -65,7 +65,8 @@ template struct bitset { } } - LIBC_INLINE constexpr bool operator==(const bitset &other) { + LIBC_INLINE constexpr bool + operator==(const bitset &other) const { for (size_t i = 0; i < NUMBER_OF_UNITS; ++i) { if (Data[i] != other.Data[i]) return false;