From 16fef9bbcea817e662d06e6103fb767977787294 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Sun, 23 May 2010 06:30:23 +0000 Subject: =?UTF-8?q?2010-05-23=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR 1528/cpukit * libcsupport/src/malloc_boundary.c: Cast to intptr_t* instead of int32_t* for 16 bit target compliance. --- cpukit/libcsupport/src/malloc_boundary.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cpukit/libcsupport') diff --git a/cpukit/libcsupport/src/malloc_boundary.c b/cpukit/libcsupport/src/malloc_boundary.c index f8f6d34bce..fd80774747 100644 --- a/cpukit/libcsupport/src/malloc_boundary.c +++ b/cpukit/libcsupport/src/malloc_boundary.c @@ -75,18 +75,18 @@ static void rtems_malloc_boundary_at_malloc( { void *return_this; struct mallocNode *mp = (struct mallocNode *)pointer; - int *fp, *nfp; + intptr_t *fp, *nfp; int i; _RTEMS_Lock_allocator(); mp->memory = mp + 1; return_this = mp->memory; mp->size = size - (sizeof(struct mallocNode) + SENTINELSIZE); - fp = (int *)&size - 2; + fp = (intptr_t *)&size - 2; for (i = 0 ; i < CALLCHAINSIZE ; i++) { mp->callChain[i] = fp[1]; - nfp = (int *)(fp[0]); - if((nfp <= fp) || (nfp > (int *)(INT32_C(0x1000000) /* 1 << 24 */))) + nfp = (intptr_t *)(fp[0]); + if((nfp <= fp) || (nfp > (intptr_t *)(INT32_C(0x1000000) /* 1 << 24 */))) break; fp = nfp; } -- cgit v1.2.3