commit 7a559c1b9f753308b96da769e4ed14313592fe18
parent c817d2c5177339b02528fd67f9e5c8e6319905f1
Author: Bor Grošelj Simić <bor.groseljsimic@telemach.net>
Date: Sun, 23 Jan 2022 13:35:59 +0100
iobus: change init array type to io::file
needed because of strict type compatibility rules for append
Signed-off-by: Bor Grošelj Simić <bor.groseljsimic@telemach.net>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/iobus/io_uring/bus.ha b/iobus/io_uring/bus.ha
@@ -101,7 +101,7 @@ fn _dispatch(bus: *bus) (result | error) = {
// I/O, but it improves performance if you do.
export fn register_file(bus: *bus, file: io::file) (registered_file | error) = {
let registered: int = if (bus.lastfd >= len(bus.fdset)) {
- static const init: [256]int = [-1...];
+ static const init: [256]io::file= [-1...];
append(bus.fdset, init...);
bus.fdset[bus.lastfd] = file;
io_uring::register_files(&bus.uring, bus.fdset)?;