Bugfix incrementing count by correct amount in rb_push_many

This commit is contained in:
Imbus 2024-07-02 06:26:17 +02:00
parent 41f817fd5b
commit 8cbca38726

View file

@ -107,7 +107,7 @@ rb_push_many(struct RingBuf *rb, const void *items, MEMCPY_T memcpy_fn,
// Advance the write head
rb->write_head = (char *)rb->write_head + rb->struct_size * n;
rb->count+=n;
rb->count += n;
return WriteOk;
}