From c194e33e98492bbd0384f2a6b9a533bcfb57701d Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Wed, 8 Mar 2023 16:41:27 -0400 Subject: macros: Add `as()` --- include/pso/TPlySmth.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/pso/TPlySmth.h') diff --git a/include/pso/TPlySmth.h b/include/pso/TPlySmth.h index 2530c7b..e510047 100644 --- a/include/pso/TPlySmth.h +++ b/include/pso/TPlySmth.h @@ -2,8 +2,8 @@ #define TPLYSMTH_H #include +#include #include -#include #include class TPlySmth { @@ -11,8 +11,8 @@ public: TPlySmth() {}; void bswap() { - bswap_32(reinterpret_cast(&m_smth)); - bswap_32(reinterpret_cast(&m_smth1)); + bswap_32(as(u32 *, &m_smth)); + bswap_32(as(u32 *, &m_smth1)); }; public: u8 m_smth[4]; -- cgit v1.2.3-13-gbd6f