summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-08-23 23:58:32 +0200
committerlouiz’ <louiz@louiz.org>2018-08-24 22:49:31 +0200
commita3e865ad63a1c0d634001d9d2e86c425bc5094e5 (patch)
tree80e3d1ff2a7bd959926e5c7ab726558a153e3ce2 /src/utils
parent7d0df9b6ddee8db69ea0a511f031f32a4537a749 (diff)
downloadbiboumi-a3e865ad63a1c0d634001d9d2e86c425bc5094e5.tar.gz
biboumi-a3e865ad63a1c0d634001d9d2e86c425bc5094e5.tar.bz2
biboumi-a3e865ad63a1c0d634001d9d2e86c425bc5094e5.tar.xz
biboumi-a3e865ad63a1c0d634001d9d2e86c425bc5094e5.zip
Fix a signed/unsigned mismatch
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/tokens_bucket.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/tokens_bucket.hpp b/src/utils/tokens_bucket.hpp
index 2992e21..263359a 100644
--- a/src/utils/tokens_bucket.hpp
+++ b/src/utils/tokens_bucket.hpp
@@ -19,7 +19,7 @@ class TokensBucket
public:
TokensBucket(long int max_size, std::chrono::milliseconds fill_duration, std::function<bool()> callback, std::string name):
limit(max_size),
- tokens(limit),
+ tokens(static_cast<std::size_t>(limit)),
callback(std::move(callback))
{
log_debug("creating TokensBucket with max size: ", max_size);