Warning fixes for VS .NET.

This commit is contained in:
Robert Osfield
2003-09-16 11:22:48 +00:00
parent 6019d54dc2
commit 00eff9c860
2 changed files with 2 additions and 2 deletions

View File

@@ -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();

View File

@@ -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);
}