Skip to content

Commit

Permalink
Merge pull request #387 from lmontaut/devel
Browse files Browse the repository at this point in the history
[GJKSolver] Fix missing switch case in result status of GJK
  • Loading branch information
jcarpent authored Mar 24, 2023
2 parents 98303de + 872ff4c commit a8b8c2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/hpp/fcl/narrowphase/narrowphase.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ struct HPP_FCL_DLLAPI GJKSolver {
}
break;
case details::GJK::Valid:
case details::GJK::EarlyStopped:
case details::GJK::Failed:
col = false;

Expand All @@ -250,7 +251,7 @@ struct HPP_FCL_DLLAPI GJKSolver {
break;
default:
assert(false && "should not reach type part.");
return true;
throw std::logic_error("GJKSolver: should not reach this part.");
}
return col;
}
Expand Down

0 comments on commit a8b8c2f

Please sign in to comment.