Minor fixes
This commit is contained in:
parent
2ebcddf9de
commit
3c308970a1
|
|
@ -497,7 +497,7 @@ namespace Nz
|
|||
if (newState == SocketState::Connecting)
|
||||
newState = SocketState::NotConnected;
|
||||
|
||||
// Prevent valid stats in non-connected state
|
||||
// Prevent valid data in non-connected state
|
||||
if (newState == SocketState::NotConnected)
|
||||
{
|
||||
m_openMode = OpenMode::NotOpen;
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ struct tcp_keepalive
|
|||
#define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4)
|
||||
#endif
|
||||
|
||||
#include <winsock2.h>
|
||||
#include <WinSock2.h>
|
||||
|
||||
#include <Nazara/Network/Debug.hpp>
|
||||
|
||||
|
|
|
|||
|
|
@ -34,13 +34,13 @@ SCENARIO("SparsePtr", "[CORE][SPARSEPTR]")
|
|||
|
||||
THEN("Operator+ and operator-")
|
||||
{
|
||||
auto offsetTwo = sparsePtr + 2;
|
||||
auto offsetTwo = sparsePtr + 2ull;
|
||||
CHECK(4 == *offsetTwo);
|
||||
|
||||
auto offsetZero = offsetTwo - 2;
|
||||
auto offsetZero = offsetTwo - 2ull;
|
||||
CHECK(0 == *offsetZero);
|
||||
|
||||
CHECK((offsetTwo - offsetZero) == 2);
|
||||
CHECK((offsetTwo - offsetZero) == 2ull);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue