/*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
.count() +
1;
// If clock is not monotonic
- delay_ms = std::max<decltype(delay_ms)>(delay_ms, 0L);
- eventBase_->tryRunAfterDelay(func, delay_ms);
+ delay_ms = std::max<decltype(delay_ms)>(delay_ms, 0);
+ eventBase_->tryRunAfterDelay(func, uint32_t(delay_ms));
}
}
} // folly::fibers