From 9c45e9c7df1efa5bc1c8e73b6eaef4726b828d3e Mon Sep 17 00:00:00 2001 From: Hannes Schulze Date: Tue, 4 Feb 2025 19:59:47 +0100 Subject: add span type --- lib/nes/sys/ppu.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/nes/sys/ppu.hh') diff --git a/lib/nes/sys/ppu.hh b/lib/nes/sys/ppu.hh index 013546a..7774669 100644 --- a/lib/nes/sys/ppu.hh +++ b/lib/nes/sys/ppu.hh @@ -2,6 +2,7 @@ #include "nes/sys/types/cycle-count.hh" #include "nes/common/types.hh" +#include "nes/common/span.hh" namespace nes { @@ -96,7 +97,7 @@ namespace nes::sys explicit sprite() = default; - explicit sprite(u8 const* data) + explicit sprite(span const data) : value{ data[0], data[1], data[2], data[3] } { } -- cgit v1.3.1