|
|
|
|
@ -459,7 +459,7 @@ static const char *layout_structure_callback(const char *type, struct objc_struc
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
round_up(&layout->record_size, align);
|
|
|
|
|
round_up((size_t*)&layout->record_size, align);
|
|
|
|
|
layout->record_size += size;
|
|
|
|
|
}
|
|
|
|
|
return end;
|
|
|
|
|
@ -487,7 +487,7 @@ void objc_layout_structure_get_info (struct objc_struct_layout *layout,
|
|
|
|
|
*type = layout->type;
|
|
|
|
|
*offset = layout->record_size / 8;
|
|
|
|
|
*align= layout->record_align / 8;
|
|
|
|
|
round_up(offset, *align);
|
|
|
|
|
round_up((size_t*)offset, (size_t)*align);
|
|
|
|
|
printf("%s %d %d\n", *type, *offset, *align);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|