Browse Source

fix malloc_hook bug

cxgeorge 24 years ago
parent
commit
05f1a94e4a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/express/memoryUsage.cxx

+ 1 - 1
panda/src/express/memoryUsage.cxx

@@ -333,7 +333,7 @@ win32_malloc_hook(int alloc_type, void *ptr,
         break;
         
       case _HOOK_FREE:
-        increment = -_msize(ptr);
+        increment = - ((int)_msize(ptr));
         break;
       }