Add __builtin___clear_cache to the portability headers
[folly.git] / folly / fibers / EventBaseLoopController-inl.h
index b23fb45cd88c1d107b5055c2b94d41635abffba3..09f260c2e9c5d7e334350d314d1c9b0041aaf01a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 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.
@@ -118,8 +118,8 @@ inline void EventBaseLoopControllerT<EventBaseT>::timedSchedule(
           .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