mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-11-27 15:02:06 +00:00
chore: fix compilation issues with x64
This commit is contained in:
@@ -240,7 +240,7 @@ namespace sdd::struct_scope_sequences
|
||||
if (state->m_current_struct_is_root && state->m_current_struct->m_properties.empty())
|
||||
state->m_current_struct_padding_offset -= 64u;
|
||||
|
||||
state->m_current_struct->m_size_in_byte = utils::Align(state->m_current_struct_padding_offset, 8u) / 8;
|
||||
state->m_current_struct->m_size_in_byte = utils::Align(state->m_current_struct_padding_offset, 8uz) / 8;
|
||||
state->m_current_struct_padding_offset = 0u;
|
||||
state->m_current_struct_is_root = false;
|
||||
state->m_current_struct = nullptr;
|
||||
|
||||
@@ -74,7 +74,7 @@ class StructuredDataDefSizeCalculatorInternal
|
||||
|
||||
m_type_stack.emplace_back(CommonStructuredDataTypeCategory::STRUCT, index);
|
||||
|
||||
auto currentOffset = 0u;
|
||||
auto currentOffset = 0uz;
|
||||
for (auto& property : _struct.m_properties)
|
||||
{
|
||||
CalculateForType(property.m_type);
|
||||
@@ -85,7 +85,7 @@ class StructuredDataDefSizeCalculatorInternal
|
||||
|
||||
currentOffset += property.m_type.GetSizeInBits(m_def);
|
||||
}
|
||||
currentOffset = utils::Align(currentOffset, 8u);
|
||||
currentOffset = utils::Align(currentOffset, 8uz);
|
||||
_struct.m_size_in_byte += currentOffset / 8;
|
||||
|
||||
m_struct_calculated[index] = true;
|
||||
|
||||
Reference in New Issue
Block a user