]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix two warnings
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 17 Dec 2007 03:59:35 +0000 (03:59 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 17 Dec 2007 03:59:35 +0000 (03:59 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7811 d7cf8633-e32d-0410-b094-e92efae38249

model_shared.c

index 005dd3282da75b24a8db5d9f82302d6e9618738c..d341e172bce049ba7d33f167348ecd7ea4fb7e5b 100644 (file)
@@ -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)
        {