diff options
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r-- | cpukit/libcsupport/src/malloc_boundary.c | 8 |
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; } |