Skip to content
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.

Commit

Permalink
Suppress cast warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
polygraphene committed May 27, 2019
1 parent 2f14b77 commit 6107d18
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion alvr_server/RecenterManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ class RecenterManager

for (int i = 0; i < 2; i++) {
if (hapticFeedback[i][0] != 0 || hapticFeedback[i][1] != 0 || hapticFeedback[i][2] != 0) {
listener->SendHapticsFeedback(0, hapticFeedback[i][0], hapticFeedback[i][1], hapticFeedback[i][2], m_remoteController[i]->GetHand() ? 1 : 0);
listener->SendHapticsFeedback(0,
static_cast<float>(hapticFeedback[i][0]),
static_cast<float>(hapticFeedback[i][1]),
static_cast<float>(hapticFeedback[i][2]),
m_remoteController[i]->GetHand() ? 1 : 0);
}
}

Expand Down

0 comments on commit 6107d18

Please sign in to comment.