]> AND Public Git Repository - simgrid.git/blobdiff - src/mc/compare.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
[simgrid.git] / src / mc / compare.cpp
index ee31b803f9351198d2a6aecc05940f271b227614..1596039cdc37bda06570c39371ce36ffe428a08c 100644 (file)
@@ -1016,7 +1016,7 @@ int compare_heap_area(simgrid::mc::StateComparator& state, int process_index,
   int new_size1 = -1, new_size2 = -1;
   simgrid::mc::Type *new_type1 = nullptr, *new_type2 = nullptr;
 
-  int match_pairs = 0;
+  bool match_pairs = false;
 
   // This is the address of std_heap->heapinfo in the application process:
   void* heapinfo_address = &((xbt_mheap_t) process->heap_address)->heapinfo;
@@ -1031,7 +1031,7 @@ int compare_heap_area(simgrid::mc::StateComparator& state, int process_index,
   simgrid::mc::HeapLocationPairs current;
   if (previous == nullptr) {
     previous = &current;
-    match_pairs = 1;
+    match_pairs = true;
   }
 
   // Get block number: