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

@ -245,7 +245,7 @@ proc selectInto*[T](s: Selector[T], timeout: int,
skey.key.events.incl(Event.Read)
if Event.User in skey.events:
var data: uint64 = 0
if posix.read(fd, addr data, sizeof(int)) != sizeof(int):
if posix.read(fd, addr data, sizeof(uint64)) != sizeof(uint64):
let err = osLastError()
if err != OSErrorCode(EAGAIN):
raiseOSError(osLastError())