Fixed type-casting-related warnings.
This commit is contained in:
@@ -632,9 +632,9 @@ void cBlockArea::DumpToRawFile(const AString & a_FileName)
|
||||
LOGWARNING("cBlockArea: Cannot open file \"%s\" for raw dump", a_FileName.c_str());
|
||||
return;
|
||||
}
|
||||
UInt32 SizeX = ntohl(m_Size.x);
|
||||
UInt32 SizeY = ntohl(m_Size.y);
|
||||
UInt32 SizeZ = ntohl(m_Size.z);
|
||||
UInt32 SizeX = ntohl(static_cast<UInt32>(m_Size.x));
|
||||
UInt32 SizeY = ntohl(static_cast<UInt32>(m_Size.y));
|
||||
UInt32 SizeZ = ntohl(static_cast<UInt32>(m_Size.z));
|
||||
f.Write(&SizeX, 4);
|
||||
f.Write(&SizeY, 4);
|
||||
f.Write(&SizeZ, 4);
|
||||
|
||||
Reference in New Issue
Block a user