From 70745286a5491fa39efaf718551b74cf06d93863 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 8 Feb 2017 20:25:23 -0500 Subject: [PATCH] Ensured this array is properly aligned for the `uin32_t` accesses I intend to make for background drawing. --- Machines/Atari2600/TIA.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Machines/Atari2600/TIA.hpp b/Machines/Atari2600/TIA.hpp index ceda0c412..e25ccddf5 100644 --- a/Machines/Atari2600/TIA.hpp +++ b/Machines/Atari2600/TIA.hpp @@ -92,7 +92,7 @@ class TIA { int output_mode_; // keeps track of the target pixel buffer for this line and when it was acquired, and a corresponding collision buffer - uint8_t collision_buffer_[160]; + alignas(alignof(uint32_t)) uint8_t collision_buffer_[160]; enum class CollisionType : uint8_t { Playfield = (1 << 0), Ball = (1 << 1),