Skip to content

Commit

Permalink
cast to long instead?
Browse files Browse the repository at this point in the history
  • Loading branch information
spacey-sooty committed Mar 8, 2024
1 parent c72d442 commit e005c53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wombat/src/main/cpp/utils/Util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void wom::utils::WritePose3NT(std::shared_ptr<nt::NetworkTable> table, frc::Pose

template <typename T>
T wom::utils::deadzone(T val, T deadzone) {
return std::fabs(static_cast<double>(val)) > static_cast<double>(deadzone) ? val : static_cast<T>(0);
return std::fabs(static_cast<long>(val)) > static_cast<long>(deadzone) ? val : static_cast<T>(0);
}

template <typename T>
Expand Down

0 comments on commit e005c53

Please sign in to comment.