IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 5, 2007, 11:26:52 AM (19 years ago)
Author:
jhoblitt
Message:

convert P_PS_MEMMAGIC from a psPTR to a psU32 to save memory on 64bit platforms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/jch-memory/psLib/src/sys/psAssert.h

    r9597 r10940  
    1616    psMemBlock *mb = (psMemBlock*)(NAME) - 1; \
    1717    if (mb->startblock != P_PS_MEMMAGIC || mb->endblock != P_PS_MEMMAGIC || \
    18             *(psPtr *)((int8_t *) (mb + 1) + mb->userMemorySize) != P_PS_MEMMAGIC) { \
     18            *(psU32 *)((char *)(mb + 1) + mb->userMemorySize) != P_PS_MEMMAGIC) { \
    1919        psError(PS_ERR_MEMORY_CORRUPTION, false, \
    2020                "Error: Pointer %s is corrupted or not on the PS memory system.", \
Note: See TracChangeset for help on using the changeset viewer.