From 7eb0b482894492d53729ef8a97cf0db9a0e99bcd Mon Sep 17 00:00:00 2001 From: Douglas Guptill <douglas.guptill@dal.ca> Date: Sun, 31 May 2009 18:20:48 +0000 Subject: [PATCH] fiddle with malloc arguments --- NN/volume.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NN/volume.c b/NN/volume.c index cc8f0f94..22dd55aa 100644 --- a/NN/volume.c +++ b/NN/volume.c @@ -166,8 +166,8 @@ for (i=0;i<mm;i++) /* allocate memory */ - ap = (float *) malloc(4*nm1*mm1); - bp = (float *) malloc(4*mm1); + ap = (float *) malloc((sizeof *a)*nm1*mm1); + bp = (float *) malloc((sizeof *b)*mm1); /* reduce a and b into ap and bp eliminating variable t and constraint i */ -- GitLab