Skip to content

Commit

Permalink
Make the condition of equal operator of spacepoint tighter (acts-proj…
Browse files Browse the repository at this point in the history
…ect#225)

* Make the condition of equal operator tighter

* clang tidy
  • Loading branch information
beomki-yeo authored and paulgessinger committed Jul 13, 2020
1 parent 91f7b73 commit 83a53db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Tests/UnitTests/Core/Seeding/SpacePoint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ struct SpacePoint {

bool operator==(SpacePoint a, SpacePoint b) {
if (a.m_x == b.m_x && a.m_y == b.m_y && a.m_z == b.m_z &&
a.surface == b.surface) {
a.surface == b.surface && a.varianceR == b.varianceR &&
a.varianceZ == b.varianceZ) {
return true;
} else {
return false;
Expand Down
4 changes: 3 additions & 1 deletion Tests/UnitTests/Plugins/Cuda/Seeding/SpacePoint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ struct SpacePoint {
};

bool operator==(SpacePoint a, SpacePoint b) {
if (a.m_x == b.m_x && a.m_y == b.m_y && a.m_z == b.m_z) {
if (a.m_x == b.m_x && a.m_y == b.m_y && a.m_z == b.m_z &&
a.surface == b.surface && a.varianceR == b.varianceR &&
a.varianceZ == b.varianceZ) {
return true;
} else {
return false;
Expand Down

0 comments on commit 83a53db

Please sign in to comment.