Skip to content

Commit

Permalink
CORE: Fix struct field offsets in debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
MineGame159 committed Jan 27, 2024
1 parent fb84e9a commit c37c938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/architecture/layout.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type CLayout struct {
func (l *CLayout) Add(size, align uint32) uint32 {
l.biggestAlign = max(l.biggestAlign, align)

offset := alignValue(l.offset, l.biggestAlign)
offset := alignValue(l.offset, align)
l.offset = offset + size

return offset
Expand Down

0 comments on commit c37c938

Please sign in to comment.