fixed operator precedence bug which caused 32 times too much memory to be allocated for each GstBuffer struct

Original commit message from CVS:
fixed operator precedence bug which caused 32 times too much memory to be allocated for each GstBuffer struct
This commit is contained in:
Steve Baker 2001-06-20 14:53:14 +00:00
parent 41381041f7
commit 5c5b2dd244

View file

@ -36,7 +36,7 @@ _gst_buffer_initialize (void)
int buffersize = sizeof(GstBuffer);
// round up to the nearest 32 bytes for cache-line and other efficiencies
buffersize = ((buffersize-1 / 32) + 1) * 32;
buffersize = (((buffersize-1) / 32) + 1) * 32;
_gst_buffer_chunk = g_mem_chunk_new ("GstBuffer", buffersize,
buffersize * 32, G_ALLOC_AND_FREE);