A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
On some systems, sqrt(int) is not defined properly. On others its just implemented...
[simgrid.git]
/
src
/
mc
/
compare.cpp
diff --git
a/src/mc/compare.cpp
b/src/mc/compare.cpp
index
1f1512b
..
7149a71
100644
(file)
--- a/
src/mc/compare.cpp
+++ b/
src/mc/compare.cpp
@@
-1236,6
+1236,7
@@
static int compare_areas_with_type(simgrid::mc::StateComparator& state,
int res;
do {
int res;
do {
+ xbt_assert(type != nullptr);
switch (type->type) {
case DW_TAG_unspecified_type:
return 1;
switch (type->type) {
case DW_TAG_unspecified_type:
return 1;
@@
-1479,7
+1480,7
@@
int snapshot_compare(int num1, simgrid::mc::Snapshot* s1, int num2, simgrid::mc:
// TODO, make this a field of ModelChecker or something similar
if (state_comparator == nullptr)
// TODO, make this a field of ModelChecker or something similar
if (state_comparator == nullptr)
- state_comparator
= std::unique_ptr<StateComparator>
(new StateComparator());
+ state_comparator
.reset
(new StateComparator());
else
state_comparator->clear();
else
state_comparator->clear();