mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
Dispatcher::SetUpdateRate(): Explicitly convert to int.
This commit is contained in:
@@ -76,7 +76,7 @@ void Dispatcher::SetUpdateRate(double interval) {
|
||||
// don't allow update rates faster than 100 ms
|
||||
if (interval < 0.1)
|
||||
interval = 0.1;
|
||||
m_update_rate = interval * 1000;
|
||||
m_update_rate = static_cast<unsigned int>(interval * 1000);
|
||||
}
|
||||
|
||||
void Dispatcher::SetIdentity(llvm::StringRef name) {
|
||||
|
||||
Reference in New Issue
Block a user