From 2b46f6771245914713de7c8e0e582584f69db667 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 4 Sep 2012 10:21:03 +0000 Subject: Hopefully fixed pointer arithmetic problems in GCC compilation in cProtocol132 git-svn-id: http://mc-server.googlecode.com/svn/trunk@828 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Protocol132.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/Protocol132.cpp b/source/Protocol132.cpp index 2a0b7a605..2765b66b2 100644 --- a/source/Protocol132.cpp +++ b/source/Protocol132.cpp @@ -591,7 +591,7 @@ void cProtocol132::HandleEncryptionKeyResponse(const AString & a_EncKey, const A m_Client->Kick("Hacked client"); return; } - if (ntohl(*((int *)DecryptedNonce)) != (unsigned)this) + if (ntohl(*((int *)DecryptedNonce)) != (unsigned)(uintptr_t)this) { LOGD("Bad nonce value"); m_Client->Kick("Hacked client"); -- cgit v1.2.3