Fix not using passed alignment value for argument sizes

This commit is contained in:
Peace-Maker 2018-04-18 00:58:56 +02:00
parent b16d1f9f3f
commit 274758c4ff

View File

@ -158,11 +158,11 @@ public:
{
DataTypeSized_t &type = m_vecArgTypes[i];
if (!type.size)
type.size = GetDataTypeSize(type);
type.size = GetDataTypeSize(type, iAlignment);
}
m_returnType = returnType;
if (!m_returnType.size)
m_returnType.size = GetDataTypeSize(m_returnType);
m_returnType.size = GetDataTypeSize(m_returnType, iAlignment);
m_iAlignment = iAlignment;
m_pSavedReturnBuffer = malloc(m_returnType.size);
}