Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rémi Cailletaud
yade
Commits
e2e5a4cf
Commit
e2e5a4cf
authored
Jun 12, 2016
by
Anton Gladky
Browse files
Fix bug in MatchMaker.
Typo in max-min function.
parent
154d03a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
pkg/common/MatchMaker.cpp
View file @
e2e5a4cf
...
...
@@ -6,7 +6,7 @@ YADE_PLUGIN((MatchMaker));
Real
MatchMaker
::
operator
()(
int
id1
,
int
id2
,
Real
val1
,
Real
val2
)
const
{
const
int
minId
=
std
::
min
(
id1
,
id2
);
const
int
maxId
=
std
::
max
(
id
2
,
id2
);
const
int
maxId
=
std
::
max
(
id
1
,
id2
);
const
auto
foundMatchItem
=
matchSet
.
find
(
std
::
make_pair
(
minId
,
maxId
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment