From 3dcb664e2220f534f4da47b01dd4d7d122507f01 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 17 Dec 2007 03:59:35 +0000 Subject: [PATCH] fix two warnings git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7811 d7cf8633-e32d-0410-b094-e92efae38249 --- model_shared.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.39.2