RCS file: /usr1/CVS/rtems/cpukit/libcsupport/src/malloc_boundary.c,v
retrieving revision 1.8
diff -u -r1.8 malloc_boundary.c
|
|
|
75 | 75 | { |
76 | 76 | void *return_this; |
77 | 77 | struct mallocNode *mp = (struct mallocNode *)pointer; |
78 | | int *fp, *nfp; |
| 78 | intptr_t *fp, *nfp; |
79 | 79 | int i; |
80 | 80 | |
81 | 81 | _RTEMS_Lock_allocator(); |
82 | 82 | mp->memory = mp + 1; |
83 | 83 | return_this = mp->memory; |
84 | 84 | mp->size = size - (sizeof(struct mallocNode) + SENTINELSIZE); |
85 | | fp = (int *)&size - 2; |
| 85 | fp = (intptr_t *)&size - 2; |
86 | 86 | for (i = 0 ; i < CALLCHAINSIZE ; i++) { |
87 | 87 | mp->callChain[i] = fp[1]; |
88 | | nfp = (int *)(fp[0]); |
89 | | if((nfp <= fp) || (nfp > (int *)(INT32_C(0x1000000) /* 1 << 24 */))) |
| 88 | nfp = (intptr_t *)(fp[0]); |
| 89 | if((nfp <= fp) || (nfp > (intptr_t *)(INT32_C(0x1000000) /* 1 << 24 */))) |
90 | 90 | break; |
91 | 91 | fp = nfp; |
92 | 92 | } |