Changeset 16fef9bb in rtems


Ignore:
Timestamp:
May 23, 2010, 6:30:23 AM (9 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
465cd13
Parents:
a4f9124
Message:

2010-05-23 Ralf Corsépius <ralf.corsepius@…>

PR 1528/cpukit

  • libcsupport/src/malloc_boundary.c: Cast to intptr_t* instead of int32_t* for 16 bit target compliance.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    ra4f9124 r16fef9bb  
     12010-05-23      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        PR 1528/cpukit
     4        * libcsupport/src/malloc_boundary.c: Cast to intptr_t* instead of
     5        int32_t* for 16 bit target compliance.
     6
    172010-05-22      Ralf Corsépius <ralf.corsepius@rtems.org>
    28
     
    1117
    12182010-05-22      Ralf Corsépius <ralf.corsepius@rtems.org>
     19
    1320        * libfs/src/rfs/rtems-rfs-bitmaps-ut.c: Use "16 bit int" arg
    1421        in call to srand if "32 bit int" doesn't fit into "int".
  • cpukit/libcsupport/src/malloc_boundary.c

    ra4f9124 r16fef9bb  
    7676  void *return_this;
    7777  struct mallocNode *mp = (struct mallocNode *)pointer;
    78   int *fp, *nfp;
     78  intptr_t *fp, *nfp;
    7979  int i;
    8080
     
    8383    return_this = mp->memory;
    8484    mp->size = size - (sizeof(struct mallocNode) + SENTINELSIZE);
    85     fp = (int *)&size - 2;
     85    fp = (intptr_t *)&size - 2;
    8686    for (i = 0 ; i < CALLCHAINSIZE ; i++) {
    8787      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 */)))
    9090       break;
    9191      fp = nfp;
Note: See TracChangeset for help on using the changeset viewer.