From 8aa1dc20a8574db8c1af122113a399a71c3b5244 Mon Sep 17 00:00:00 2001 From: pnenzi Date: Fri, 9 Feb 2001 23:17:27 +0000 Subject: [PATCH] Bug fix: incorrect definition of CALLOC ifndef HAVE_LIBGC --- src/maths/sparse/spdefs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/maths/sparse/spdefs.h b/src/maths/sparse/spdefs.h index 1b4f78631..0e11ab5ba 100644 --- a/src/maths/sparse/spdefs.h +++ b/src/maths/sparse/spdefs.h @@ -259,7 +259,7 @@ /* A new calloc */ #ifndef HAVE_LIBGC #define CALLOC(ptr,type,number) \ -{ ptr = (type *) calloc(type, number); \ +{ ptr = (type *) calloc(number, sizeof(type)); \ } #else /* HAVE_LIBCG */ #define CALLOC(ptr,type,number) \