More Code/Framework

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-08-16 15:55:06 -07:00
parent 06e6f83907
commit 3eb658534b
6 changed files with 12 additions and 20 deletions
@@ -176,7 +176,7 @@ namespace AzNetworking
//! Takes a quantized integral value and stores the floating point representation.
void DecodeQuantizedValues();
AZ_PUSH_DISABLE_WARNING(4201 4324, "-Wunknown-warning-option") // anonymous union, structure was padded due to alignment
AZ_PUSH_DISABLE_WARNING(4324, "-Wunknown-warning-option") // anonymous union, structure was padded due to alignment
union
{
float m_quantizedValues[NUM_ELEMENTS];
@@ -218,14 +218,7 @@ namespace AzNetworking
{
SerializeType serializedValue = static_cast<SerializeType>(m_serializeValues[i]);
#ifdef AZ_COMPILER_MSVC
# pragma warning(push)
# pragma warning(disable: 4127) // conditional expression is constant
#endif
if (NUM_BYTES == 3)
#ifdef AZ_COMPILER_MSVC
# pragma warning(pop)
#endif
if constexpr (NUM_BYTES == 3)
{
uint8_t lowByte = static_cast<uint8_t>((serializedValue & 0x000000FF) );
uint8_t midByte = static_cast<uint8_t>((serializedValue & 0x0000FF00) >> 8);