# Properly support passing a packed struct to byteSwapAllFields \(\#30571\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 8d4a9119b80fd263ce4c8b5745b88953914acdb9

Requested commit: 8d4a9119b80fd263ce4c8b5745b88953914acdb9

Commit: 8d4a9119b80fd263ce4c8b5745b88953914acdb9

Tree: 4af7e1a465863426a1d77b67297ef5cc2e134442

Author: Steven Casper

Committer: Andrew Kelley

## Message

```
Properly support passing a packed struct to byteSwapAllFields (#30571)

Reopening [#25698](https://github.com/ziglang/zig/pull/25698)
Closes [#25054](https://github.com/ziglang/zig/issues/25054)

Reviewed-on: https://codeberg.org/ziglang/zig/pulls/30571
Reviewed-by: Andrew Kelley <andrewrk@noreply.codeberg.org>
Co-authored-by: Steven Casper <sebastiancasper3@gmail.com>
Co-committed-by: Steven Casper <sebastiancasper3@gmail.com>

```

## Parents

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

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