From 97b015b8c746639e30a8e39d366524034414c108 Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Tue, 16 May 2023 16:36:07 +0200 Subject: [PATCH] virtio: fix MMIO build errors with `-std=gnu++20` Issue #4827 --- repos/os/include/virtio/queue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/os/include/virtio/queue.h b/repos/os/include/virtio/queue.h index fc5e6b0b8f..6307872d0e 100644 --- a/repos/os/include/virtio/queue.h +++ b/repos/os/include/virtio/queue.h @@ -518,7 +518,7 @@ class Virtio::Queue * Only the first descritor in the chain needs to be pushed to the available ring. */ _avail->ring[_avail->idx % _queue_size] = write_result.first_descriptor_idx; - _avail->idx += 1; + _avail->idx = _avail->idx + 1; _avail->flags = Avail::Flags::NO_INTERRUPT; wait_for_reply();