Fix for issue #430

This commit is contained in:
kai
2013-08-05 20:39:45 +02:00
parent 07cb4cca0d
commit 967b986629
2 changed files with 2 additions and 2 deletions

View File

@@ -181,7 +181,7 @@ IrTypeStruct* IrTypeStruct::get(StructDeclaration* sd)
size_t offset = 0;
size_t field_index = 0;
bool packed = (sd->type->alignsize() == 1);
bool packed = (sd->alignment == 1);
// first we sort the list by offset
std::sort(data.begin(), data.end(), var_offset_sort_cb);