diff --git a/SRC/memory.c b/SRC/memory.c index 6d3ca8d3..9fe37e41 100644 --- a/SRC/memory.c +++ b/SRC/memory.c @@ -26,7 +26,7 @@ at the top-level directory. #if ( DEBUGlevel>=1 ) /* Debug malloc/free. */ -int_t superlu_malloc_total = 0; +int64_t superlu_malloc_total = 0; #define PAD_FACTOR 2 #define DWORD (sizeof(double)) /* Be sure it's no smaller than double. */ diff --git a/SRC/slu_util.h b/SRC/slu_util.h index e1b0895e..efcb7432 100644 --- a/SRC/slu_util.h +++ b/SRC/slu_util.h @@ -24,6 +24,7 @@ at the top-level directory. #include #include #include +#include /* #ifndef __STDC__ @@ -86,8 +87,8 @@ at the top-level directory. #define SUPERLU_FREE(addr) USER_FREE(addr) #define CHECK_MALLOC(where) { \ - extern int superlu_malloc_total; \ - printf("%s: malloc_total %d Bytes\n", \ + extern int64_t superlu_malloc_total; \ + printf("%s: malloc_total %lld Bytes\n", \ where, superlu_malloc_total); \ }