aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-05-26 21:00:17 -0700
committerChris Robinson <[email protected]>2019-05-26 21:00:17 -0700
commitf6f220025bd9674a33d896258b315c006cfd78f1 (patch)
treeab8cff6e1b8b34d6def4e0c82e4e3bfdf59cd7b3
parent3007fbf5e52145f002d15f3c8ff4943d992cea98 (diff)
Fix subspan
-rw-r--r--common/alspan.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/alspan.h b/common/alspan.h
index 98da1a44..12254812 100644
--- a/common/alspan.h
+++ b/common/alspan.h
@@ -104,7 +104,7 @@ public:
constexpr span subspan(size_t offset, size_t count=static_cast<size_t>(-1)) const
{
return (offset >= size()) ? span{} :
- (count >= size()-offset) ? last(count) :
+ (count >= size()-offset) ? span{mData+offset, mDataEnd} :
span{mData+offset, mData+offset+count};
}