Skip to content

Commit

Permalink
[multibody] Fix mac build error. Need to cast TypeSafeIndex to int. (R…
Browse files Browse the repository at this point in the history
…obotLocomotion#16114)

* [multibody] Fix mac build error. Need to cast TypeSafeIndex to int.
  • Loading branch information
DamrongGuoy authored Nov 17, 2021
1 parent a3dc3e1 commit e16ec4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions multibody/plant/test/multibody_plant_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3139,9 +3139,9 @@ GTEST_TEST(StateSelection, KukaWithSimpleGripper) {
const auto& right_finger_actuator =
plant.GetJointActuatorByName("right_finger_sliding_joint");
B_expected(left_finger_actuator.joint().velocity_start(),
left_finger_actuator.index()) = 1;
int{left_finger_actuator.index()}) = 1;
B_expected(right_finger_actuator.joint().velocity_start(),
right_finger_actuator.index()) = 1;
int{right_finger_actuator.index()}) = 1;
EXPECT_TRUE(CompareMatrices(B, B_expected, 0.0, MatrixCompareType::absolute));

// Test old spellings.
Expand Down

0 comments on commit e16ec4d

Please sign in to comment.