diff options
author | Chris Robinson <[email protected]> | 2020-04-28 19:58:17 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-04-28 19:58:17 -0700 |
commit | 047f1666d55d71a2d5b1856fdbb59f10cbbc15bf (patch) | |
tree | 7976994b4252a79ee7b3ea693016ba22f761d110 /common | |
parent | 4094135ed7e7d1f2c22cf944094f7f0daf2cd8e6 (diff) |
Fix subspan extent calculation
Diffstat (limited to 'common')
-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 { |