diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-02-09 15:30:32 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-02-09 15:37:04 +0100 |
commit | d7bc7508e57d6227646f6aa81e5393a41a904518 (patch) | |
tree | 6854e627bb98d6d468c4fefe47d34d2004bb4f2e /device/endpoint_test.go | |
parent | d6e76fdbd6bae64a08662eb19d3634adb4881155 (diff) |
device: fix alignment on 32-bit machines and test for it
The test previously checked the offset within a substruct, not the
offset within the allocated struct, so this adds the two together.
It then fixes an alignment crash on 32-bit machines.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'device/endpoint_test.go')
0 files changed, 0 insertions, 0 deletions