chore(gx): use uint32_t union member in CGxStateBom when appropriate

This commit is contained in:
fallenoak 2023-04-17 16:52:11 -05:00
parent 58272f1212
commit bc1ce52f7d
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -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 {