mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
compiler warning
This commit is contained in:
parent
385e7be325
commit
df4cf52a77
@ -41,7 +41,7 @@ inc_heap(size_t size) {
|
||||
INLINE void MemoryHook::
|
||||
dec_heap(size_t size) {
|
||||
#ifdef DO_MEMORY_USAGE
|
||||
assert(size <= _requested_heap_size);
|
||||
assert((int)size <= _requested_heap_size);
|
||||
AtomicAdjust::add(_requested_heap_size, -(PN_int32)size);
|
||||
#endif // DO_MEMORY_USAGE
|
||||
}
|
||||
|
@ -296,7 +296,7 @@ heap_free_array(void *ptr) {
|
||||
bool MemoryHook::
|
||||
heap_trim(size_t pad) {
|
||||
#if defined(USE_MEMORY_DLMALLOC) || (defined(USE_MEMORY_PTMALLOC2) && !defined(linux))
|
||||
return dlmalloc_trim(pad);
|
||||
return (dlmalloc_trim(pad) != 0);
|
||||
#else
|
||||
// Since malloc_trim() isn't standard C, we can't be sure it exists
|
||||
// on a given platform.
|
||||
|
Loading…
x
Reference in New Issue
Block a user