Skip to content

Commit b967c47

Browse files
committed
tests/runtime_wasi: fix broken test
1 parent 223f689 commit b967c47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/runtime_wasi/malloc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func checkFilledBuffer(t *testing.T, ptr uintptr, content string) {
6767
t.Helper()
6868
buf := *(*string)(unsafe.Pointer(&reflect.StringHeader{
6969
Data: ptr,
70-
Len: uintptr(len(content)),
70+
Len: len(content),
7171
}))
7272
if buf != content {
7373
t.Errorf("expected %q, got %q", content, buf)

0 commit comments

Comments
 (0)