From f043dd519eecdf701d90309b2f77c7a0db629009 Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Thu, 17 Mar 2022 22:45:52 +0000 Subject: Fixed a wrong type when computing memory usage on macOS --- lib/Support/MemoryUsage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Support') diff --git a/lib/Support/MemoryUsage.cpp b/lib/Support/MemoryUsage.cpp index 00fe07b3..6e9f9424 100644 --- a/lib/Support/MemoryUsage.cpp +++ b/lib/Support/MemoryUsage.cpp @@ -119,7 +119,7 @@ size_t util::GetTotalMallocUsage() { KERN_SUCCESS) klee_error("malloc_get_all_zones failed."); - int total = 0; + size_t total = 0; for (unsigned i = 0; i < num_zones; i++) { malloc_zone_statistics(zones[i], &stats); total += stats.size_in_use; -- cgit 1.4.1