aboutsummaryrefslogtreecommitdiff
path: root/src/socketengines/kqueue.cpp
diff options
context:
space:
mode:
authorGravatar Dominic Hamon2021-05-30 20:37:54 +0100
committerGravatar GitHub2021-05-30 20:37:54 +0100
commit02340285c564a7e82105137192d46d554a6fce3a (patch)
tree696d1a6249841de62c3fed70310c2a347fc66732 /src/socketengines/kqueue.cpp
parentAdd a workaround for a bug in GitHub Actions. (diff)
Added -Wshorten-64-to-32 and fixed all warnings.
Diffstat (limited to 'src/socketengines/kqueue.cpp')
-rw-r--r--src/socketengines/kqueue.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socketengines/kqueue.cpp b/src/socketengines/kqueue.cpp
index 9d1ca6d3c..aabc67c3c 100644
--- a/src/socketengines/kqueue.cpp
+++ b/src/socketengines/kqueue.cpp
@@ -169,7 +169,7 @@ int SocketEngine::DispatchEvents()
ts.tv_nsec = 0;
ts.tv_sec = 1;
- int i = kevent(EngineHandle, &changelist.front(), ChangePos, &ke_list.front(), ke_list.size(), &ts);
+ int i = kevent(EngineHandle, &changelist.front(), ChangePos, &ke_list.front(), static_cast<int>(ke_list.size()), &ts);
ChangePos = 0;
ServerInstance->UpdateTime();