Fix 32bit architecture problems with SelectEvent.
This commit is contained in:
parent
283f8e9c8c
commit
b75ddf5ba2
3 changed files with 5 additions and 5 deletions
|
|
@ -407,8 +407,8 @@ proc selectInto*[T](s: Selector[T], timeout: int,
|
|||
inc(i)
|
||||
continue
|
||||
elif Event.User in skey.events:
|
||||
var data: uint = 0
|
||||
if posix.read(fdi.cint, addr data, sizeof(uint)) != sizeof(uint):
|
||||
var data: uint64 = 0
|
||||
if posix.read(fdi.cint, addr data, sizeof(uint64)) != sizeof(uint64):
|
||||
let err = osLastError()
|
||||
if err == OSErrorCode(EAGAIN):
|
||||
inc(i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue