Skip to content

Commit 967b986

Browse files
committed
Fix for issue #430
1 parent 07cb4cc commit 967b986

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ir/irtypestruct.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ IrTypeStruct* IrTypeStruct::get(StructDeclaration* sd)
181181
size_t offset = 0;
182182
size_t field_index = 0;
183183

184-
bool packed = (sd->type->alignsize() == 1);
184+
bool packed = (sd->alignment == 1);
185185

186186
// first we sort the list by offset
187187
std::sort(data.begin(), data.end(), var_offset_sort_cb);

tests/d2/dmd-testsuite

0 commit comments

Comments
 (0)