From: divverent Date: Wed, 4 Mar 2015 11:49:07 +0000 (+0000) Subject: Fix some signed/unsigned mess. Not a real problem though. X-Git-Tag: xonotic-v0.8.1~14 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4e9d8afd988430f9fa7c2a7ec16fa585112a6cd6;p=xonotic%2Fdarkplaces.git Fix some signed/unsigned mess. Not a real problem though. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12177 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=6b1ade501453a2def2320663016d556b832e7391 --- diff --git a/crypto.c b/crypto.c index 63988031..6abaaa22 100644 --- a/crypto.c +++ b/crypto.c @@ -2127,11 +2127,11 @@ int Crypto_ClientParsePacket(const char *data_in, size_t len_in, char *data_out, int wantserverid = -1; // these three are harmless - if(string[4] == CCREP_SERVER_INFO) + if((unsigned char) string[4] == CCREP_SERVER_INFO) return CRYPTO_NOMATCH; - if(string[4] == CCREP_PLAYER_INFO) + if((unsigned char) string[4] == CCREP_PLAYER_INFO) return CRYPTO_NOMATCH; - if(string[4] == CCREP_RULE_INFO) + if((unsigned char) string[4] == CCREP_RULE_INFO) return CRYPTO_NOMATCH; Crypto_RetrieveHostKey(&cls.connect_address, &wantserverid, NULL, 0, NULL, 0, NULL, NULL);