• R/O
  • SSH
  • HTTPS

peframework: Commit


Commit MetaInfo

Revision7 (tree)
Time2017-04-16 23:22:21
Authorquiret

Log Message

- fixed some 64bit compiler complaints about integer truncation

Change Summary

Incremental Difference

--- src/peloader.write.cpp (revision 6)
+++ src/peloader.write.cpp (revision 7)
@@ -878,7 +878,7 @@
878878 lnkEntry.DataIsDirectory = ( itemType == PEResourceItem::eType::DIRECTORY );
879879 lnkEntry.OffsetToDirectory = ( childAllocInfo.entry_off );
880880
881- const std::uint32_t lnkEntryOff = ( linkWriteOff + writeIndex * sizeof(lnkEntry) );
881+ const std::uint32_t lnkEntryOff = (std::uint32_t)( linkWriteOff + writeIndex * sizeof(lnkEntry) );
882882
883883 writeBuf.WriteToSection( &lnkEntry, sizeof(lnkEntry), lnkEntryOff );
884884
@@ -930,7 +930,7 @@
930930 lnkEntry.DataIsDirectory = ( itemType == PEResourceItem::eType::DIRECTORY );
931931 lnkEntry.OffsetToDirectory = ( childAllocInfo.entry_off );
932932
933- const std::uint32_t lnkEntryOff = ( linkWriteOff + writeIndex * sizeof(lnkEntry) );
933+ const std::uint32_t lnkEntryOff = (std::uint32_t)( linkWriteOff + writeIndex * sizeof(lnkEntry) );
934934
935935 writeBuf.WriteToSection( &lnkEntry, sizeof(lnkEntry), lnkEntryOff );
936936
Show on old repository browser