reflect: use int in StringHeader and SliceHeader on non-AVR platforms (#4156)

This commit is contained in:
Randy Reddig
2024-05-14 05:04:54 -07:00
committed by GitHub
parent c78dbcd3f2
commit fe27b674cd
5 changed files with 60 additions and 4 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ func checkFilledBuffer(t *testing.T, ptr uintptr, content string) {
t.Helper()
buf := *(*string)(unsafe.Pointer(&reflect.StringHeader{
Data: ptr,
Len: uintptr(len(content)),
Len: len(content),
}))
if buf != content {
t.Errorf("expected %q, got %q", content, buf)