diff --git a/lib/bytevector.cc b/lib/bytevector.cc index 9cbefd7..df2b430 100644 --- a/lib/bytevector.cc +++ b/lib/bytevector.cc @@ -44,10 +44,10 @@ namespace crucible { } ByteVector::value_type& - ByteVector::operator[](size_t size) const + ByteVector::operator[](size_t index) const { unique_lock lock(m_mutex); - return m_ptr.get()[size]; + return m_ptr.get()[index]; } ByteVector::ByteVector(const ByteVector &that)