compiler warning

This commit is contained in:
David Rose 2007-06-29 16:00:15 +00:00
parent 385e7be325
commit df4cf52a77
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ inc_heap(size_t size) {
INLINE void MemoryHook:: INLINE void MemoryHook::
dec_heap(size_t size) { dec_heap(size_t size) {
#ifdef DO_MEMORY_USAGE #ifdef DO_MEMORY_USAGE
assert(size <= _requested_heap_size); assert((int)size <= _requested_heap_size);
AtomicAdjust::add(_requested_heap_size, -(PN_int32)size); AtomicAdjust::add(_requested_heap_size, -(PN_int32)size);
#endif // DO_MEMORY_USAGE #endif // DO_MEMORY_USAGE
} }

View File

@ -296,7 +296,7 @@ heap_free_array(void *ptr) {
bool MemoryHook:: bool MemoryHook::
heap_trim(size_t pad) { heap_trim(size_t pad) {
#if defined(USE_MEMORY_DLMALLOC) || (defined(USE_MEMORY_PTMALLOC2) && !defined(linux)) #if defined(USE_MEMORY_DLMALLOC) || (defined(USE_MEMORY_PTMALLOC2) && !defined(linux))
return dlmalloc_trim(pad); return (dlmalloc_trim(pad) != 0);
#else #else
// Since malloc_trim() isn't standard C, we can't be sure it exists // Since malloc_trim() isn't standard C, we can't be sure it exists
// on a given platform. // on a given platform.