Make folly::StrictConjunction usable under MSVC
[folly.git] / folly / fibers / Semaphore.h
index 047abee8d888c076ecb261c43d43d427b0dab6e8..c1a95c4a9d81ff6756d27064b98f9e35353c1fcb 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.
@@ -28,7 +28,7 @@ namespace fibers {
 class Semaphore {
  public:
   explicit Semaphore(size_t tokenCount)
-      : capacity_(tokenCount), tokens_(capacity_) {}
+      : capacity_(tokenCount), tokens_(int64_t(capacity_)) {}
 
   Semaphore(const Semaphore&) = delete;
   Semaphore(Semaphore&&) = delete;