File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 39
39
* only be one producer thread and one consumer thread.
40
40
*/
41
41
fluid_ringbuffer_t *
42
- new_fluid_ringbuffer (int count , int elementsize )
42
+ new_fluid_ringbuffer (int count , size_t elementsize )
43
43
{
44
44
fluid_ringbuffer_t * queue ;
45
45
Original file line number Diff line number Diff line change @@ -33,14 +33,14 @@ struct _fluid_ringbuffer_t
33
33
fluid_atomic_int_t count ; /**< Current count of elements */
34
34
int in ; /**< Index in queue to store next pushed element */
35
35
int out ; /**< Index in queue of next popped element */
36
- int elementsize ; /**< Size of each element */
36
+ size_t elementsize ; /**< Size of each element */
37
37
void * userdata ;
38
38
};
39
39
40
40
typedef struct _fluid_ringbuffer_t fluid_ringbuffer_t ;
41
41
42
42
43
- fluid_ringbuffer_t * new_fluid_ringbuffer (int count , int elementsize );
43
+ fluid_ringbuffer_t * new_fluid_ringbuffer (int count , size_t elementsize );
44
44
void delete_fluid_ringbuffer (fluid_ringbuffer_t * queue );
45
45
46
46
/**
You can’t perform that action at this time.
0 commit comments