Skip to content

Commit 9a4432b

Browse files
committed
there should be no inconsistency...
all redev and wdmcpl tests pass
1 parent dbf97a7 commit 9a4432b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

redev.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,10 @@ namespace redev {
126126
const auto rank=serialized[i+2];
127127
ModelEnt ent(dim,id);
128128
const auto hasEnt = me2r.count(ent);
129-
if( (hasEnt && rank < me2r[ent]) || !hasEnt ) {
130-
me2r[ModelEnt(dim,id)] = rank;
129+
if( !hasEnt ) {
130+
me2r[ent] = rank;
131+
} else {
132+
REDEV_ALWAYS_ASSERT(rank == me2r[ent]);
131133
}
132134
}
133135
return me2r;

0 commit comments

Comments
 (0)