diff --git a/ringbuf.c b/ringbuf.c index e3c7067..23adb94 100644 --- a/ringbuf.c +++ b/ringbuf.c @@ -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; }