From 5c5b2dd244c366f235955d4eadb766ab0c5ee169 Mon Sep 17 00:00:00 2001 From: Steve Baker Date: Wed, 20 Jun 2001 14:53:14 +0000 Subject: [PATCH] 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 --- gst/gstbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstbuffer.c b/gst/gstbuffer.c index 59ebf44a59..9ece39a3e2 100644 --- a/gst/gstbuffer.c +++ b/gst/gstbuffer.c @@ -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);