mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
update go-ffmpreg to v0.2.5 (pulls in latest tetratelabs/wazero) (#3203)
This commit is contained in:
3
vendor/github.com/tetratelabs/wazero/internal/wasm/binary/value.go
generated
vendored
3
vendor/github.com/tetratelabs/wazero/internal/wasm/binary/value.go
generated
vendored
@ -54,7 +54,6 @@ func decodeUTF8(r *bytes.Reader, contextFormat string, contextArgs ...interface{
|
||||
return "", 0, fmt.Errorf("%s is not valid UTF-8", fmt.Sprintf(contextFormat, contextArgs...))
|
||||
}
|
||||
|
||||
// TODO: use unsafe.String after flooring Go 1.20.
|
||||
ret := *(*string)(unsafe.Pointer(&buf))
|
||||
ret := unsafe.String(&buf[0], int(size))
|
||||
return ret, size + uint32(sizeOfSize), nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user