From 4e9d8afd988430f9fa7c2a7ec16fa585112a6cd6 Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 4 Mar 2015 11:49:07 +0000 Subject: [PATCH] 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 --- crypto.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.39.2