diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2020-12-02 18:40:31 +0100 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2020-12-02 18:40:31 +0100 |
| commit | 5cba16c707fd4c46aeeabebdcc85d06b9149d6e4 (patch) | |
| tree | 4791d3480860b89a15840219440b3f22d6a466cb /src/main.zig | |
| parent | 0fba2f71758bd4230f5c6ff9a638e6b69a671a78 (diff) | |
| download | zig-5cba16c707fd4c46aeeabebdcc85d06b9149d6e4.tar.gz zig-5cba16c707fd4c46aeeabebdcc85d06b9149d6e4.zip | |
macho:use mem.asBytes and meta.eql in commands.zig
This commit addresses comments suggesting a cleaner approach
at converting an `extern` struct to its byte representation using
`mem.asBytes`, and to use `meta.eql` in place of more fragile
`mem.eql(u8, ...)` for comparison of two `extern` structs.
Thanks LemonBoy!
Diffstat (limited to 'src/main.zig')
0 files changed, 0 insertions, 0 deletions
