summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2010-05-23 06:30:23 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2010-05-23 06:30:23 +0000
commit16fef9bbcea817e662d06e6103fb767977787294 (patch)
tree1a75c07af9af46350eaad5ad4fb3d8b8305c1fca /cpukit/libcsupport
parent2010-05-23 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-16fef9bbcea817e662d06e6103fb767977787294.tar.bz2
2010-05-23 Ralf Corsépius <ralf.corsepius@rtems.org>
PR 1528/cpukit * libcsupport/src/malloc_boundary.c: Cast to intptr_t* instead of int32_t* for 16 bit target compliance.
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r--cpukit/libcsupport/src/malloc_boundary.c8
1 files changed, 4 insertions, 4 deletions
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;
}