mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
more compiler warnings
This commit is contained in:
parent
df4cf52a77
commit
09df7cee05
@ -199,7 +199,7 @@ heap_free_single(void *ptr) {
|
|||||||
void *alloc = ptr_to_alloc(ptr, size);
|
void *alloc = ptr_to_alloc(ptr, size);
|
||||||
|
|
||||||
#ifdef DO_MEMORY_USAGE
|
#ifdef DO_MEMORY_USAGE
|
||||||
assert(size <= _total_heap_single_size);
|
assert((int)size <= _total_heap_single_size);
|
||||||
AtomicAdjust::add(_total_heap_single_size, -(PN_int32)size);
|
AtomicAdjust::add(_total_heap_single_size, -(PN_int32)size);
|
||||||
#endif // DO_MEMORY_USAGE
|
#endif // DO_MEMORY_USAGE
|
||||||
|
|
||||||
@ -247,7 +247,7 @@ heap_realloc_array(void *ptr, size_t size) {
|
|||||||
void *alloc = ptr_to_alloc(ptr, orig_size);
|
void *alloc = ptr_to_alloc(ptr, orig_size);
|
||||||
|
|
||||||
#ifdef DO_MEMORY_USAGE
|
#ifdef DO_MEMORY_USAGE
|
||||||
assert(orig_size <= _total_heap_array_size);
|
assert((PN_int32)orig_size <= _total_heap_array_size);
|
||||||
AtomicAdjust::add(_total_heap_array_size, (PN_int32)size-(PN_int32)orig_size);
|
AtomicAdjust::add(_total_heap_array_size, (PN_int32)size-(PN_int32)orig_size);
|
||||||
#endif // DO_MEMORY_USAGE
|
#endif // DO_MEMORY_USAGE
|
||||||
|
|
||||||
@ -272,7 +272,7 @@ heap_free_array(void *ptr) {
|
|||||||
void *alloc = ptr_to_alloc(ptr, size);
|
void *alloc = ptr_to_alloc(ptr, size);
|
||||||
|
|
||||||
#ifdef DO_MEMORY_USAGE
|
#ifdef DO_MEMORY_USAGE
|
||||||
assert(size <= _total_heap_array_size);
|
assert((int)size <= _total_heap_array_size);
|
||||||
AtomicAdjust::add(_total_heap_array_size, -(PN_int32)size);
|
AtomicAdjust::add(_total_heap_array_size, -(PN_int32)size);
|
||||||
#endif // DO_MEMORY_USAGE
|
#endif // DO_MEMORY_USAGE
|
||||||
|
|
||||||
@ -381,7 +381,7 @@ mmap_free(void *ptr, size_t size) {
|
|||||||
assert((size % _page_size) == 0);
|
assert((size % _page_size) == 0);
|
||||||
|
|
||||||
#ifdef DO_MEMORY_USAGE
|
#ifdef DO_MEMORY_USAGE
|
||||||
assert(size <= _total_mmap_size);
|
assert((int)size <= _total_mmap_size);
|
||||||
_total_mmap_size -= size;
|
_total_mmap_size -= size;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user