Opened 15 years ago
Last modified 15 years ago
#366 closed defect
Bug in PredMapPath::empty() — at Initial Version
Reported by: | Alpar Juttner | Owned by: | Alpar Juttner |
---|---|---|---|
Priority: | major | Milestone: | LEMON 1.3 release |
Component: | core | Version: | hg main |
Keywords: | Cc: | retvari@… | |
Revision id: |
Description
Dear all,
I think the below behavior of PredMapPath::empty() makes more sense.
Regards, Gabor
################
# HG changeset patch # User retvari@everything # Date 1271017722 -7200 # Node ID 6e741754566a2075505527319b57862baf59931f # Parent 6dd226d3dcbaa9f7474a9b9f445f1c617d65d481 Fix PredMapPath::empty()
diff --git a/lemon/bits/path_dump.h b/lemon/bits/path_dump.h --- a/lemon/bits/path_dump.h +++ b/lemon/bits/path_dump.h @@ -49,7 +49,7 @@
}
bool empty() const {
- return predMap[target] != INVALID;
+ return predMap[target] == INVALID;
}
class RevArcIt? {