@@ -499,7 +499,7 @@ pub const AsyncIoUring = struct {
499
499
break :blk .{ .connect = result };
500
500
},
501
501
.recv = > {
502
- if (cqe .res > 0 ) break :blk .{ .recv = .{ .actual = cqe .res } };
502
+ if (cqe .res > 0 ) break :blk .{ .recv = .{ .actual = @intCast ( cqe .res ) } };
503
503
if (cqe .res == 0 ) break :blk .{ .recv = .{ .err = RecvError .Closed } };
504
504
const result : RecvResult = result : {
505
505
const e : LinuxError = @enumFromInt (- cqe .res );
@@ -520,7 +520,7 @@ pub const AsyncIoUring = struct {
520
520
break :blk .{ .recv = result };
521
521
},
522
522
.send = > {
523
- if (cqe .res >= 0 ) break :blk .{ .send = .{ .actual = cqe .res } };
523
+ if (cqe .res >= 0 ) break :blk .{ .send = .{ .actual = @intCast ( cqe .res ) } };
524
524
const result : SendResult = result : {
525
525
const e : LinuxError = @enumFromInt (- cqe .res );
526
526
switch (e ) {
@@ -548,7 +548,7 @@ pub const AsyncIoUring = struct {
548
548
break :blk .{ .send = result };
549
549
},
550
550
.open = > {
551
- if (cqe .res >= 0 ) break :blk .{ .open = .{ .actual = cqe .res } };
551
+ if (cqe .res >= 0 ) break :blk .{ .open = .{ .actual = @intCast ( cqe .res ) } };
552
552
const result : OpenResult = result : {
553
553
const e : LinuxError = @enumFromInt (- cqe .res );
554
554
switch (e ) {
@@ -582,7 +582,7 @@ pub const AsyncIoUring = struct {
582
582
break :blk .{ .open = result };
583
583
},
584
584
.read = > {
585
- if (cqe .res > 0 ) break :blk .{ .read = .{ .actual = cqe .res } };
585
+ if (cqe .res > 0 ) break :blk .{ .read = .{ .actual = @intCast ( cqe .res ) } };
586
586
if (cqe .res == 0 ) break :blk .{ .read = .{ .err = ReadError .EndOfFile } };
587
587
const result : ReadResult = result : {
588
588
const e : LinuxError = @enumFromInt (- cqe .res );
@@ -601,7 +601,7 @@ pub const AsyncIoUring = struct {
601
601
break :blk .{ .read = result };
602
602
},
603
603
.write = > {
604
- if (cqe .res > 0 ) break :blk .{ .write = .{ .actual = cqe .res } };
604
+ if (cqe .res > 0 ) break :blk .{ .write = .{ .actual = @intCast ( cqe .res ) } };
605
605
const result : WriteResult = result : {
606
606
const e : LinuxError = @enumFromInt (- cqe .res );
607
607
switch (e ) {
0 commit comments