Fix some GCC warnings

This was SVN commit r7048.
This commit is contained in:
Ykkrosh
2009-07-28 16:59:19 +00:00
parent 4ee7e26776
commit 008d894dd7
20 changed files with 39 additions and 29 deletions
+2 -2
View File
@@ -55,11 +55,11 @@ const char* StringPool::UniqueCopy(const char* string)
return existingString;
const size_t length = strlen(string);
const char* uniqueCopy = (const char*)pool_alloc(&m_pool, length+1);
char* uniqueCopy = (char*)pool_alloc(&m_pool, length+1);
if(!uniqueCopy)
throw std::bad_alloc();
cpu_memcpy((void*)uniqueCopy, string, length);
((char*)uniqueCopy)[length] = '\0';
uniqueCopy[length] = '\0';
m_map.insert(uniqueCopy, uniqueCopy);