aboutsummaryrefslogtreecommitdiff
path: root/zenutil/zenserverprocess.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-04 21:47:28 +0200
committerStefan Boberg <[email protected]>2021-09-04 21:53:52 +0200
commiteaed365194e22857c0d70a4ee6a83a9dcdbbc02c (patch)
tree2eb8d182bd61e30d985088cb80e5ecd393382fbe /zenutil/zenserverprocess.cpp
parentxmake build files (experimental) (diff)
downloadzen-eaed365194e22857c0d70a4ee6a83a9dcdbbc02c.tar.xz
zen-eaed365194e22857c0d70a4ee6a83a9dcdbbc02c.zip
Silence truncation warning
Diffstat (limited to 'zenutil/zenserverprocess.cpp')
-rw-r--r--zenutil/zenserverprocess.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/zenutil/zenserverprocess.cpp b/zenutil/zenserverprocess.cpp
index 112c10dff..4e45ddfae 100644
--- a/zenutil/zenserverprocess.cpp
+++ b/zenutil/zenserverprocess.cpp
@@ -190,7 +190,7 @@ ZenServerState::Register(int ListenPort)
if (Entry.ListenPort.load(std::memory_order::memory_order_relaxed) == 0)
{
uint16_t Expected = 0;
- if (Entry.ListenPort.compare_exchange_strong(Expected, ListenPort))
+ if (Entry.ListenPort.compare_exchange_strong(Expected, uint16_t(ListenPort)))
{
// Successfully allocated entry