Bugfix incrementing count by correct amount in rb_push_many
This commit is contained in:
		
							parent
							
								
									41f817fd5b
								
							
						
					
					
						commit
						8cbca38726
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -107,7 +107,7 @@ rb_push_many(struct RingBuf *rb, const void *items, MEMCPY_T memcpy_fn, | ||||||
| 
 | 
 | ||||||
|   // Advance the write head
 |   // Advance the write head
 | ||||||
|   rb->write_head = (char *)rb->write_head + rb->struct_size * n; |   rb->write_head = (char *)rb->write_head + rb->struct_size * n; | ||||||
|   rb->count+=n; |   rb->count += n; | ||||||
| 
 | 
 | ||||||
|   return WriteOk; |   return WriteOk; | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Imbus
						Imbus