| author | |
| committer | |
| log | 704660c81a3e53713645528e658881283af013dd |
| tree | e22885e39a974dbdbd4deecdbc5a0fa59ec7a022 |
| parent | 631c28c9e3814de45b1a55b0d475d41623981dae |
1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/os/linux/IoUring.zig+1-1| ... | ... | @@ -284,7 +284,7 @@ fn copy_cqes_ready(self: *IoUring, cqes: []linux.io_uring_cqe) u32 { |
| 284 | 284 | const head = self.cq.head.* & self.cq.mask; |
| 285 | 285 | const tail = (self.cq.head.* +% count) & self.cq.mask; |
| 286 | 286 | |
| 287 | if (head <= tail) { | |
| 287 | if (head < tail) { | |
| 288 | 288 | // head behind tail -> no wrapping |
| 289 | 289 | @memcpy(cqes[0..count], self.cq.cqes[head..tail]); |
| 290 | 290 | } else { |