diff options
author | bptato <nincsnevem662@gmail.com> | 2024-07-13 19:35:34 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-07-13 19:51:42 +0200 |
commit | 224640dc58ee7a4837597ed7a10a17dac4d95629 (patch) | |
tree | d2a2b40081a65e49d23bfb4df2725236542e201c /src/local/client.nim | |
parent | bf231d2e50c342fdd688b7e944ff5c934610e08b (diff) | |
download | chawan-224640dc58ee7a4837597ed7a10a17dac4d95629.tar.gz |
32-bit compilation fixes
It seems registerHandle/unregister doesn't accept cint as handles. Not sure why it even works on 64-bit targets... (maybe some converter weirdness?) Seems best to explicitly cast it away.
Diffstat (limited to 'src/local/client.nim')
-rw-r--r-- | src/local/client.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/local/client.nim b/src/local/client.nim index 7a218a11..a852d8cd 100644 --- a/src/local/client.nim +++ b/src/local/client.nim @@ -405,7 +405,7 @@ proc acceptBuffers(client: Client) = elif (let i = pager.findConnectingContainer(container); i != -1): # connecting to URL let stream = pager.connectingContainers[i].stream - client.selector.unregister(stream.fd) + client.selector.unregister(int(stream.fd)) stream.sclose() pager.connectingContainers.del(i) let registerFun = proc(fd: int) = |