aboutsummaryrefslogtreecommitdiff
path: root/zenutil
diff options
context:
space:
mode:
Diffstat (limited to 'zenutil')
-rw-r--r--zenutil/xmake.lua5
-rw-r--r--zenutil/zenserverprocess.cpp2
2 files changed, 6 insertions, 1 deletions
diff --git a/zenutil/xmake.lua b/zenutil/xmake.lua
new file mode 100644
index 000000000..f4bbcd6f0
--- /dev/null
+++ b/zenutil/xmake.lua
@@ -0,0 +1,5 @@
+target('zenutil')
+ set_kind("static")
+ add_files("**.cpp")
+ add_includedirs("include", {public=true})
+ add_deps("zencore")
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