From bc1ce52f7dd2ca49abb29b387889e5a1f05384c6 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Mon, 17 Apr 2023 16:52:11 -0500 Subject: [PATCH] chore(gx): use uint32_t union member in CGxStateBom when appropriate --- src/gx/CGxStateBom.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gx/CGxStateBom.cpp b/src/gx/CGxStateBom.cpp index 0527190..28137e6 100644 --- a/src/gx/CGxStateBom.cpp +++ b/src/gx/CGxStateBom.cpp @@ -8,7 +8,7 @@ const CGxStateBom& CGxStateBom::operator=(int32_t value) { } const CGxStateBom& CGxStateBom::operator=(uint32_t value) { - this->m_data.i[0] = value; + this->m_data.u[0] = value; return *this; } @@ -86,7 +86,7 @@ bool CGxStateBom::operator!=(CGxStateBom& value) { CGxStateBom::operator CImVector() const { CImVector color; - color.value = this->m_data.i[0]; + color.value = this->m_data.u[0]; return color; } @@ -99,7 +99,7 @@ CGxStateBom::operator int32_t() const { } CGxStateBom::operator uint32_t() const { - return this->m_data.i[0]; + return this->m_data.u[0]; } CGxStateBom::operator void*() const {