# Correct calculation of padding length in struct · gitcafe/zig

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

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

Visibility: public

Requested revision: 67bd0267db00cf71b5f3301559a39bac32b65476

Requested commit: 67bd0267db00cf71b5f3301559a39bac32b65476

Commit: 67bd0267db00cf71b5f3301559a39bac32b65476

Tree: 0833d087464e2a0ea5635b066dc24b6983966e10

Author: LemonBoy

Committer: Andrew Kelley

## Message

```
Correct calculation of padding length in struct

Make sure the resulting type is in-sync with the one produced and used
by LLVM.

Fixes #3138

```

## Parents

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

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