Changeset c2f5726 in git for omalloc


Ignore:
Timestamp:
Apr 8, 2017, 5:35:22 PM (7 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
3c5f5fdf2c64b5ced7e254997007e96a6d07accc
Parents:
4a0e4ea61e709d6664315404b52dd64b5469d1dd
Message:
fix: return type size_t for OM_MALLOC_SIZEOF_ADDR
File:
1 edited

Legend:

Unmodified
Added
Removed
  • omalloc/omMallocSystem.h

    r4a0e4e rc2f5726  
    2121#define OM_MALLOC_SIZEOF_ADDR(addr) (malloc_usable_size(addr))
    2222#else
    23 static inline OM_MALLOC_SIZEOF_ADDR(void *d) { long*dd=(long*)d; return *(dd-1); }
     23static inline size_t OM_MALLOC_SIZEOF_ADDR(void *d) { long*dd=(long*)d; return *(dd-1); }
    2424#endif
    2525
Note: See TracChangeset for help on using the changeset viewer.