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

Public GIT Repository
plugin link_load: tiny logic error (thanks clang for noticing)
[simgrid.git] / src / mc / sosp / Snapshot.cpp
index 7e799892f474a77fbe9ad168178de72d455d923b..5393c8fcdf64ba087666ca2e828e2514e27aad8e 100644 (file)
@@ -104,7 +104,7 @@ static std::vector<s_mc_stack_frame_t> unwind_stack_frames(UnwindContext* stack_
 
   // TODO, check condition check (unw_init_local==0 means end of frame)
 
-  while (1) {
+  while (true) {
     s_mc_stack_frame_t stack_frame;
 
     stack_frame.unw_cursor = c;
@@ -227,7 +227,7 @@ void Snapshot::add_region(RegionType type, ObjectInformation* object_info, void*
   else if (type == RegionType::Heap)
     xbt_assert(not object_info, "Unexpected object info for heap region.");
 
-  Region* region = new Region(type, start_addr, size);
+  auto* region = new Region(type, start_addr, size);
   region->object_info(object_info);
   snapshot_regions_.push_back(std::unique_ptr<Region>(std::move(region)));
 }