From 78c61acf15c66a17df63da60226acff3a2dda585 Mon Sep 17 00:00:00 2001 From: Artem Pyanykh Date: Mon, 11 Feb 2019 14:05:26 +0300 Subject: Use segments for section layout --- rts/RtsUtils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rts/RtsUtils.c') diff --git a/rts/RtsUtils.c b/rts/RtsUtils.c index d5fa16874c..b099fa2dad 100644 --- a/rts/RtsUtils.c +++ b/rts/RtsUtils.c @@ -97,13 +97,13 @@ stgReallocBytes (void *p, size_t n, char *msg) } void * -stgCallocBytes (size_t n, size_t m, char *msg) +stgCallocBytes (size_t count, size_t size, char *msg) { void *space; - if ((space = calloc(n, m)) == NULL) { + if ((space = calloc(count, size)) == NULL) { /* don't fflush(stdout); WORKAROUND bug in Linux glibc */ - rtsConfig.mallocFailHook((W_) n*m, msg); + rtsConfig.mallocFailHook((W_) count*size, msg); stg_exit(EXIT_INTERNAL_ERROR); } return space; -- cgit v1.2.1