diff --git a/src/osgPlugins/txp/trpage_warchive.cpp b/src/osgPlugins/txp/trpage_warchive.cpp index ada4ff140..bf98e08fc 100644 --- a/src/osgPlugins/txp/trpage_warchive.cpp +++ b/src/osgPlugins/txp/trpage_warchive.cpp @@ -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(texFile->Pos()); // Write the data out to the archive. int totSize = tex.CalcTotalSize(); diff --git a/src/osgPlugins/txp/trpage_writebuf.cpp b/src/osgPlugins/txp/trpage_writebuf.cpp index 273e114a4..6ef4ebe48 100644 --- a/src/osgPlugins/txp/trpage_writebuf.cpp +++ b/src/osgPlugins/txp/trpage_writebuf.cpp @@ -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); }