Skip to content

Commit

Permalink
UB fix attempt #2
Browse files Browse the repository at this point in the history
  • Loading branch information
strasdat committed Dec 18, 2024
1 parent 7ab594f commit 2b76bc8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cpp/sophus/lie/pose3.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@ class Pose3 {

static Expected<Tangent> error(
Pose3 const& lhs_a_from_b, Pose3 const& rhs_a_from_b) {
Expected<Pose3> product = lhs_a_from_b.inverse() * rhs_a_from_b;
if (!product) {
return product.error();
}
FARM_TRY(Pose3, product, lhs_a_from_b.inverse() * rhs_a_from_b);
return product->log();
}

Expand Down

0 comments on commit 2b76bc8

Please sign in to comment.