Commit f95bf6fb authored by hybrid's avatar hybrid

Fix more strict-aliasing problems.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2854 dfc29bdd-3216-0410-991c-e03cc46cb475
parent ba9e58e7
......@@ -1927,7 +1927,7 @@ public:
virtual s32 getInt()
{
return *(s32*)(&Value);
return *static_cast<s32*>(Value);
}
virtual bool getBool()
......@@ -1938,7 +1938,7 @@ public:
virtual core::stringw getStringW()
{
wchar_t buf[32];
swprintf(buf, 32, L"0x%x", *(int*)(&Value));
swprintf(buf, 32, L"%p", Value);
return core::stringw(buf);
}
......
......@@ -47,7 +47,7 @@ void CDepthBuffer::clear()
#endif
u32 zMaxValue;
zMaxValue = *(u32*) &zMax;
zMaxValue = IR(zMax);
memset32 ( Buffer, zMaxValue, TotalSize );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment