~sircmpwn/hare-linux

8f66feb3d1a6ab12639bd3ce81d9a1a22ff8c29a — Bor Grošelj Simić 2 years ago b747ad4
use type assertion with nullable types in some places

Signed-off-by: Bor Grošelj Simić <bgs@turminal.net>
1 files changed, 1 insertions(+), 2 deletions(-)

M io_uring/cqe.ha
M io_uring/cqe.ha => io_uring/cqe.ha +1 -2
@@ 21,8 21,7 @@ export fn wait(ring: *io_uring) (*cqe | error) = {
	case let err: error =>
		return err;
	case let cq: nullable *cqe =>
		assert(cq != null); // XXX: Correct?
		return cq: *cqe;
		return cq as *cqe; // XXX: Correct?
	};
};