]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - crypto.c
Fix some signed/unsigned mess. Not a real problem though.
[xonotic/darkplaces.git] / crypto.c
index 63988031386e5cbc12db7572773141cfb5ef4326..6abaaa220719ed20c96728530953c696bed78b67 100644 (file)
--- 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);