Fix 32bit architecture problems with SelectEvent.

This commit is contained in:
cheatfate 2016-08-31 10:30:25 +03:00
commit b75ddf5ba2
3 changed files with 5 additions and 5 deletions

View file

@ -155,9 +155,9 @@ when defined(windows):
result.wsock = wsock
proc setEvent*(ev: SelectEvent) =
var data: int = 1
var data: uint64 = 1
if winlean.send(ev.wsock, cast[pointer](addr data),
cint(sizeof(int)), 0) != sizeof(int):
cint(sizeof(uint64)), 0) != sizeof(uint64):
raiseOSError(osLastError())
proc close*(ev: SelectEvent) =