diff options
-rw-r--r-- | device/peer_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/device/peer_test.go b/device/peer_test.go index 6aa238b..9c1ede5 100644 --- a/device/peer_test.go +++ b/device/peer_test.go @@ -26,7 +26,7 @@ func checkAlignment(t *testing.T, name string, offset uintptr) { func TestPeerAlignment(t *testing.T) { var p Peer - typ := reflect.TypeOf(p) + typ := reflect.TypeOf(&p).Elem() t.Logf("Peer type size: %d, with fields:", typ.Size()) for i := 0; i < typ.NumField(); i++ { field := typ.Field(i) |