X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9b00b25919fb4fe7311031c78a13e7ae2055df70..269363f1bc63093972eb06e0537ca5f22ab8a53d:/src/mc/RegionSnapshot.cpp diff --git a/src/mc/RegionSnapshot.cpp b/src/mc/RegionSnapshot.cpp index bfcc7ba35a..333aed2ed3 100644 --- a/src/mc/RegionSnapshot.cpp +++ b/src/mc/RegionSnapshot.cpp @@ -119,11 +119,10 @@ RegionSnapshot region( RegionType type, void *start_addr, void* permanent_addr, size_t size, RegionSnapshot const* ref_region) { - if (_sg_mc_sparse_checkpoint) { + if (_sg_mc_sparse_checkpoint) return sparse_region(type, start_addr, permanent_addr, size, ref_region); - } else { + else return dense_region(type, start_addr, permanent_addr, size); - } } RegionSnapshot sparse_region(RegionType region_type,