summaryrefslogtreecommitdiff
path: root/device/alignment_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'device/alignment_test.go')
-rw-r--r--device/alignment_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/device/alignment_test.go b/device/alignment_test.go
index 46baeb1..a918112 100644
--- a/device/alignment_test.go
+++ b/device/alignment_test.go
@@ -61,6 +61,5 @@ func TestDeviceAlignment(t *testing.T) {
field.Type.Align(),
)
}
-
- checkAlignment(t, "Device.rate.underLoadUntil", unsafe.Offsetof(d.rate.underLoadUntil))
+ checkAlignment(t, "Device.rate.underLoadUntil", unsafe.Offsetof(d.rate)+unsafe.Offsetof(d.rate.underLoadUntil))
}