From d1e6ab49a4a3b8ac663ee4ac539e2ee1d2f5b118 Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Fri, 6 May 2016 11:06:18 +0200 Subject: [PATCH] [mc] Use bool instead of int for match_pairs --- src/mc/compare.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mc/compare.cpp b/src/mc/compare.cpp index ee31b803f9..1596039cdc 100644 --- a/src/mc/compare.cpp +++ b/src/mc/compare.cpp @@ -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 = ¤t; - match_pairs = 1; + match_pairs = true; } // Get block number: -- 2.20.1