Warning fixes for VS .NET.
This commit is contained in:
@@ -1368,7 +1368,7 @@ bool trpgwImageHelper::WriteToArchive(const trpgTexture &tex,char *data,trpgwApp
|
||||
|
||||
// Get the current address
|
||||
addr.file = texFileIDs[texFileIDs.size()-1];
|
||||
addr.offset = texFile->Pos();
|
||||
addr.offset = static_cast<int32>(texFile->Pos());
|
||||
|
||||
// Write the data out to the archive.
|
||||
int totSize = tex.CalcTotalSize();
|
||||
|
||||
@@ -131,7 +131,7 @@ void trpgMemWriteBuffer::Add(int32 val)
|
||||
void trpgMemWriteBuffer::Add(int64 val)
|
||||
{
|
||||
if (ness != cpuNess)
|
||||
val = trpg_byteswap_long(val);
|
||||
val = trpg_byteswap_llong(val);
|
||||
append(sizeof(int64),(const char *)&val);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user