diff options
Diffstat (limited to 'modules/core/c++')
-rw-r--r-- | modules/core/c++/buffer.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/core/c++/buffer.hpp b/modules/core/c++/buffer.hpp index 87c54a6..5bbd90b 100644 --- a/modules/core/c++/buffer.hpp +++ b/modules/core/c++/buffer.hpp @@ -203,7 +203,7 @@ public: } auto& arr_front = buffer_.front(); - if(size != arr_front.size()){ + if(size != arr_front.read_composite_length()){ return make_error<err::invalid_state>("Can't extract array buffer. Size doesn't match. Use view and copy."); } |