diff options
Diffstat (limited to 'common/alspan.h')
-rw-r--r-- | common/alspan.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/alspan.h b/common/alspan.h index 9aa30fc2..3c65e2e8 100644 --- a/common/alspan.h +++ b/common/alspan.h @@ -250,7 +250,7 @@ public: template<size_t O, size_t C=dynamic_extent> constexpr span<element_type,C> subspan() const - { return span<element_type,C>{mData+O, (C!=dynamic_extent) ? mData+C : mDataEnd}; } + { return span<element_type,C>{mData+O, (C!=dynamic_extent) ? mData+O+C : mDataEnd}; } constexpr span subspan(size_t offset, size_t count=dynamic_extent) const { |