/*
- * 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.
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;