summaryrefslogtreecommitdiffstats
path: root/src/common/iman.cpp
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-07-30 22:59:18 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-07-30 22:59:18 +0200
commit5e637ca0288ddd631ec33e1d620cd4a73bcdc2be (patch)
treeb26b0e9572f101744aba712133e646fb93ed58d2 /src/common/iman.cpp
parentd8a0c8d32e160e7ae86bb5b85ead8e5f71b1fd01 (diff)
downloadcolobot-5e637ca0288ddd631ec33e1d620cd4a73bcdc2be.tar.gz
colobot-5e637ca0288ddd631ec33e1d620cd4a73bcdc2be.tar.bz2
colobot-5e637ca0288ddd631ec33e1d620cd4a73bcdc2be.zip
Switched to new style casts
- rewrote old C-style casts to new ..._cast<> - corrected some dangerous casts - added -Wold-style-cast to compile flags
Diffstat (limited to 'src/common/iman.cpp')
-rw-r--r--src/common/iman.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/iman.cpp b/src/common/iman.cpp
index 28ee3d3..90b0c1e 100644
--- a/src/common/iman.cpp
+++ b/src/common/iman.cpp
@@ -93,7 +93,7 @@ bool CInstanceManager::AddInstance(ClassType classType, void* pointer, int max)
if ( m_table[classType].classPointer == 0 )
{
- m_table[classType].classPointer = (void**)malloc(max*sizeof(void*));
+ m_table[classType].classPointer = static_cast<void**>( malloc(max*sizeof(void*)) );
m_table[classType].totalPossible = max;
m_table[classType].totalUsed = 0;
}