# Fix integer overflow in field padding calculation · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/928d43f61a9b08fd9c83964c34a29cca85839226)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 928d43f61a9b08fd9c83964c34a29cca85839226

Requested commit: 928d43f61a9b08fd9c83964c34a29cca85839226

Commit: 928d43f61a9b08fd9c83964c34a29cca85839226

Tree: 41285239ba4d29f2d75aaf44029876d4b212c15c

Author: antlilja

Committer: Andrew Kelley

## Message

```
Fix integer overflow in field padding calculation

The old code was iterating and generating symbols
for fields in their declared order instead of the
memory optimized order while getting offsets in
the memory optimized order.

```

## Parents

- [33e4cbb20f7cac71e5feaeeeb4c7576ab4708697](https://git.cafe/gitcafe/zig/commit/33e4cbb20f7cac71e5feaeeeb4c7576ab4708697?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/928d43f61a9b08fd9c83964c34a29cca85839226?format=markdown)
