diff options
| author | Stefan Boberg <[email protected]> | 2021-09-04 21:47:28 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-04 21:53:52 +0200 |
| commit | eaed365194e22857c0d70a4ee6a83a9dcdbbc02c (patch) | |
| tree | 2eb8d182bd61e30d985088cb80e5ecd393382fbe /zenutil/zenserverprocess.cpp | |
| parent | xmake build files (experimental) (diff) | |
| download | zen-eaed365194e22857c0d70a4ee6a83a9dcdbbc02c.tar.xz zen-eaed365194e22857c0d70a4ee6a83a9dcdbbc02c.zip | |
Silence truncation warning
Diffstat (limited to 'zenutil/zenserverprocess.cpp')
| -rw-r--r-- | zenutil/zenserverprocess.cpp | 2 |
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 |