mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-09 13:33:39 +00:00
all: use unsafe.SliceData where appropriate
This commit is contained in:
committed by
Ron Evans
parent
de83d67364
commit
70a0dee8c8
@@ -39,7 +39,7 @@ var (
|
||||
putcharBuffer = [putcharBufferSize]byte{}
|
||||
putcharPosition uint = 0
|
||||
putcharIOVec = __wasi_iovec_t{
|
||||
buf: unsafe.Pointer(&putcharBuffer[0]),
|
||||
buf: unsafe.Pointer(unsafe.SliceData(putcharBuffer[:])),
|
||||
}
|
||||
putcharNWritten uint
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user