From 3fda9b37cbec22cd3c438dea6268422b32405f4b Mon Sep 17 00:00:00 2001 From: Hannes Schulze Date: Thu, 6 Feb 2025 19:58:09 +0100 Subject: fix subspan --- lib/nes/common/containers/span.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/nes/common') 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 { NES_ASSERT(first <= get_length() && "subspan out of bounds"); - return subspan(length_ - first); + return subspan(first, length_ - first); } template -- cgit v1.3.1