summaryrefslogtreecommitdiff
path: root/buffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'buffer.cpp')
-rw-r--r--buffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/buffer.cpp b/buffer.cpp
index b1029a6..342373a 100644
--- a/buffer.cpp
+++ b/buffer.cpp
@@ -115,7 +115,7 @@ u_int8_t* Buffer::getBuf()
return buf_;
}
-u_int8_t& Buffer::operator[](u_int32_t index)
+u_int8_t Buffer::operator[](u_int32_t index)
{
if(index >= length_)
throw std::out_of_range("buffer::operator[]");