@@ -499,7 +499,7 @@ pub const AsyncIoUring = struct {
499499 break :blk .{ .connect = result };
500500 },
501501 .recv = > {
502- if (cqe .res > 0 ) break :blk .{ .recv = .{ .actual = cqe .res } };
502+ if (cqe .res > 0 ) break :blk .{ .recv = .{ .actual = @intCast ( cqe .res ) } };
503503 if (cqe .res == 0 ) break :blk .{ .recv = .{ .err = RecvError .Closed } };
504504 const result : RecvResult = result : {
505505 const e : LinuxError = @enumFromInt (- cqe .res );
@@ -520,7 +520,7 @@ pub const AsyncIoUring = struct {
520520 break :blk .{ .recv = result };
521521 },
522522 .send = > {
523- if (cqe .res >= 0 ) break :blk .{ .send = .{ .actual = cqe .res } };
523+ if (cqe .res >= 0 ) break :blk .{ .send = .{ .actual = @intCast ( cqe .res ) } };
524524 const result : SendResult = result : {
525525 const e : LinuxError = @enumFromInt (- cqe .res );
526526 switch (e ) {
@@ -548,7 +548,7 @@ pub const AsyncIoUring = struct {
548548 break :blk .{ .send = result };
549549 },
550550 .open = > {
551- if (cqe .res >= 0 ) break :blk .{ .open = .{ .actual = cqe .res } };
551+ if (cqe .res >= 0 ) break :blk .{ .open = .{ .actual = @intCast ( cqe .res ) } };
552552 const result : OpenResult = result : {
553553 const e : LinuxError = @enumFromInt (- cqe .res );
554554 switch (e ) {
@@ -582,7 +582,7 @@ pub const AsyncIoUring = struct {
582582 break :blk .{ .open = result };
583583 },
584584 .read = > {
585- if (cqe .res > 0 ) break :blk .{ .read = .{ .actual = cqe .res } };
585+ if (cqe .res > 0 ) break :blk .{ .read = .{ .actual = @intCast ( cqe .res ) } };
586586 if (cqe .res == 0 ) break :blk .{ .read = .{ .err = ReadError .EndOfFile } };
587587 const result : ReadResult = result : {
588588 const e : LinuxError = @enumFromInt (- cqe .res );
@@ -601,7 +601,7 @@ pub const AsyncIoUring = struct {
601601 break :blk .{ .read = result };
602602 },
603603 .write = > {
604- if (cqe .res > 0 ) break :blk .{ .write = .{ .actual = cqe .res } };
604+ if (cqe .res > 0 ) break :blk .{ .write = .{ .actual = @intCast ( cqe .res ) } };
605605 const result : WriteResult = result : {
606606 const e : LinuxError = @enumFromInt (- cqe .res );
607607 switch (e ) {
0 commit comments