Convert Int to Long in a 'send' call in the socket sample
This commit is contained in:
@@ -63,7 +63,7 @@ fun main(args: Array<String>) {
|
||||
|
||||
send(commFd, prefixBuffer.refTo(0), prefixBuffer.size.signExtend(), 0)
|
||||
.ensureUnixCallResult("write") { it >= 0 }
|
||||
send(commFd, pinned.addressOf(0), length, 0)
|
||||
send(commFd, pinned.addressOf(0), length.signExtend(), 0)
|
||||
.ensureUnixCallResult("write") { it >= 0 }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user