diff --git a/AK/Span.h b/AK/Span.h index 5fdcfce8292..847a26cafe5 100644 --- a/AK/Span.h +++ b/AK/Span.h @@ -176,10 +176,11 @@ public: return this->m_values[index]; } - ALWAYS_INLINE T& operator=(const T& other) + ALWAYS_INLINE Span& operator=(const Span& other) { this->m_size = other.m_size; this->m_values = other.m_values; + return *this; } ALWAYS_INLINE operator Span() const