From: havoc Date: Mon, 17 Dec 2007 03:59:35 +0000 (+0000) Subject: fix two warnings X-Git-Tag: xonotic-v0.1.0preview~2680 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3dcb664e2220f534f4da47b01dd4d7d122507f01;p=xonotic%2Fdarkplaces.git fix two warnings git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7811 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_shared.c b/model_shared.c index 005dd328..d341e172 100644 --- a/model_shared.c +++ b/model_shared.c @@ -1133,7 +1133,7 @@ static void Q3Shaders_Clear() static void Q3Shader_AddToHash (q3shaderinfo_t* shader) { - unsigned short hash = CRC_Block (shader->name, strlen (shader->name)); + unsigned short hash = CRC_Block ((const unsigned char *)shader->name, strlen (shader->name)); q3shader_hash_entry_t* entry = q3shader_data->hash + (hash % Q3SHADER_HASH_SIZE); q3shader_hash_entry_t* lastEntry = NULL; while (entry != NULL) @@ -1654,7 +1654,7 @@ void Mod_LoadQ3Shaders(void) q3shaderinfo_t *Mod_LookupQ3Shader(const char *name) { - unsigned short hash = CRC_Block (name, strlen (name)); + unsigned short hash = CRC_Block ((const unsigned char *)name, strlen (name)); q3shader_hash_entry_t* entry = q3shader_data->hash + (hash % Q3SHADER_HASH_SIZE); while (entry != NULL) {