Implement interop integer conversions to be used with type inference
This commit is contained in:
committed by
SvyatoslavScherbina
parent
757c306341
commit
f65044c7bb
@@ -20,7 +20,7 @@ fun main(args: Array<String>) {
|
||||
|
||||
with(serverAddr) {
|
||||
memset(this.ptr, 0, sockaddr_in.size)
|
||||
sin_family.value = AF_INET.toByte()
|
||||
sin_family.value = AF_INET.narrow()
|
||||
sin_addr.s_addr.value = htons(0).toInt()
|
||||
sin_port.value = htons(port)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user