[ox] Fix remaining implicit conversion issues
This commit is contained in:
4
deps/ox/src/ox/logconn/CMakeLists.txt
vendored
4
deps/ox/src/ox/logconn/CMakeLists.txt
vendored
@@ -12,6 +12,10 @@ set_property(
|
||||
POSITION_INDEPENDENT_CODE ON
|
||||
)
|
||||
|
||||
if(NOT MSVC)
|
||||
target_compile_options(OxLogConn PRIVATE -Wsign-conversion)
|
||||
endif()
|
||||
|
||||
target_link_libraries(
|
||||
OxLogConn PUBLIC
|
||||
OxStd
|
||||
|
4
deps/ox/src/ox/logconn/logconn.cpp
vendored
4
deps/ox/src/ox/logconn/logconn.cpp
vendored
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2015 - 2022 gary@drinkingtea.net
|
||||
* Copyright 2015 - 2023 gary@drinkingtea.net
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
@@ -40,7 +40,7 @@ ox::Error LoggerConn::initConn(const char *appName) noexcept {
|
||||
addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
|
||||
addr.sin_port = htons(5590);
|
||||
m_socket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
|
||||
oxReturnError(OxError(connect(m_socket, reinterpret_cast<sockaddr*>(&addr), sizeof(addr))));
|
||||
oxReturnError(OxError(static_cast<ox::ErrorCode>(connect(m_socket, reinterpret_cast<sockaddr*>(&addr), sizeof(addr)))));
|
||||
return sendInit({.appName = appName});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user