diff options
| author | Hannes Schulze <haschu0103@outlook.de> | 2025-02-06 19:58:09 +0100 |
|---|---|---|
| committer | Hannes Schulze <haschu0103@outlook.de> | 2025-02-06 19:58:09 +0100 |
| commit | 3fda9b37cbec22cd3c438dea6268422b32405f4b (patch) | |
| tree | fad82007f12a7e8424bc33c2fb5679c145f672a7 /lib/nes/common/containers | |
| parent | da7032b81a37a6c591d69d9fe72715cac6d0c37c (diff) | |
fix subspan
Diffstat (limited to 'lib/nes/common/containers')
| -rw-r--r-- | lib/nes/common/containers/span.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nes/common/containers/span.hh b/lib/nes/common/containers/span.hh index 4e66eb8..17395ca 100644 --- a/lib/nes/common/containers/span.hh +++ b/lib/nes/common/containers/span.hh @@ -79,7 +79,7 @@ namespace nes auto subspan(u32 const first) const -> span<T> { NES_ASSERT(first <= get_length() && "subspan out of bounds"); - return subspan(length_ - first); + return subspan(first, length_ - first); } template<u32 OtherLength> |
