mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-18 11:33:59 +00:00
reflect: use int in StringHeader and SliceHeader on non-AVR platforms (#4156)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user