Dispatcher::SetUpdateRate(): Explicitly convert to int.

This commit is contained in:
Peter Johnson
2015-07-20 20:19:01 -07:00
parent 98d45777c6
commit 158ae61811

View File

@@ -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) {