From 9ca793417149cbaa7b5f4b7797bc929e6e191f28 Mon Sep 17 00:00:00 2001 From: Hannes Schulze Date: Sat, 1 Feb 2025 01:14:03 +0100 Subject: use custom integer types --- lib/nes/common/box.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/nes/common/box.hh') diff --git a/lib/nes/common/box.hh b/lib/nes/common/box.hh index 442d60f..3a65613 100644 --- a/lib/nes/common/box.hh +++ b/lib/nes/common/box.hh @@ -1,5 +1,7 @@ #pragma once +#include "nes/common/types.hh" + namespace nes { /// Wrapper around an object, allowing for it to be uninitialized or reassigned even if the object type doesn't @@ -10,7 +12,7 @@ namespace nes class box { bool initialized_{ false }; - alignas(T) unsigned char buffer_[sizeof(T)]; + alignas(T) u8 buffer_[sizeof(T)]; public: /// Create an empty box. -- cgit v1.3.1