virtio: fix MMIO build errors with -std=gnu++20

Issue #4827
This commit is contained in:
Christian Helmuth 2023-05-16 16:36:07 +02:00
parent b60190a73c
commit 97b015b8c7

View File

@ -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();