Minor fixes

This commit is contained in:
Jérôme Leclercq 2022-01-23 01:22:16 +01:00
parent 2ebcddf9de
commit 3c308970a1
3 changed files with 5 additions and 5 deletions

View File

@ -497,7 +497,7 @@ namespace Nz
if (newState == SocketState::Connecting) if (newState == SocketState::Connecting)
newState = SocketState::NotConnected; newState = SocketState::NotConnected;
// Prevent valid stats in non-connected state // Prevent valid data in non-connected state
if (newState == SocketState::NotConnected) if (newState == SocketState::NotConnected)
{ {
m_openMode = OpenMode::NotOpen; m_openMode = OpenMode::NotOpen;

View File

@ -31,7 +31,7 @@ struct tcp_keepalive
#define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4) #define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4)
#endif #endif
#include <winsock2.h> #include <WinSock2.h>
#include <Nazara/Network/Debug.hpp> #include <Nazara/Network/Debug.hpp>

View File

@ -34,13 +34,13 @@ SCENARIO("SparsePtr", "[CORE][SPARSEPTR]")
THEN("Operator+ and operator-") THEN("Operator+ and operator-")
{ {
auto offsetTwo = sparsePtr + 2; auto offsetTwo = sparsePtr + 2ull;
CHECK(4 == *offsetTwo); CHECK(4 == *offsetTwo);
auto offsetZero = offsetTwo - 2; auto offsetZero = offsetTwo - 2ull;
CHECK(0 == *offsetZero); CHECK(0 == *offsetZero);
CHECK((offsetTwo - offsetZero) == 2); CHECK((offsetTwo - offsetZero) == 2ull);
} }
} }
} }