| author | |
| committer | |
| log | fd1c54933277d9f2ffe9bab1100228e139de67ae |
| tree | 5ca942623a91a3c49f00d1d6c6bb48af7f9ad086 |
| parent | a7aec00feb79fd1f90307721a4ce1543e4dc4306 |
1. @bitCast has no target type anymore and throws error, discard it
because the old errno only accept usize. The new errno takes any
integer width and does the signed conversion itself
2. also throw away the widening (i32 -> usize), the logic is in linux.errno
now1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/Io/Uring.zig+1-1| ... | ... | @@ -1100,7 +1100,7 @@ const Completion = struct { |
| 1100 | 1100 | }; |
| 1101 | 1101 | |
| 1102 | 1102 | fn errno(completion: Completion) linux.E { |
| 1103 | return linux.errno(@bitCast(@as(isize, completion.result))); | |
| 1103 | return linux.errno(completion.result); | |
| 1104 | 1104 | } |
| 1105 | 1105 | }; |
| 1106 | 1106 |