summaryrefslogtreecommitdiffhomepage
path: root/src/local-coords.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-22 15:06:39 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-22 15:06:39 +0100
commita917bb7c28b383c3c684bf75732188bfff0060bb (patch)
tree4b59f92cab7126a2e1a3b00c05ada385004c3657 /src/local-coords.hpp
parent9bd0075cb57a0e08fff45a2b9967de287533aa44 (diff)
fit local-coords in a single byte
Diffstat (limited to 'src/local-coords.hpp')
-rw-r--r--src/local-coords.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/local-coords.hpp b/src/local-coords.hpp
index 949a90e0..30fb3617 100644
--- a/src/local-coords.hpp
+++ b/src/local-coords.hpp
@@ -6,7 +6,7 @@
namespace floormat {
struct local_coords final {
- std::uint8_t x = 0, y = 0;
+ std::uint8_t x : 4 = 0, y : 4 = 0;
explicit constexpr local_coords(std::size_t idx) noexcept;
constexpr local_coords() noexcept = default;
template<std::integral T> requires (sizeof(T) <= sizeof(std::size_t))