diff --git a/ndsfactory.cpp b/ndsfactory.cpp index abced80..6d95f3f 100644 --- a/ndsfactory.cpp +++ b/ndsfactory.cpp @@ -17,7 +17,7 @@ bool NDSFactory::loadRomHeader(const std::string& romPath, std::vector& ro std::ifstream romFile (romPath, std::ios::in|std::ios::binary|std::ios::ate); if (romFile.is_open()) { - romHeader.resize(static_cast(headerSize)); + romHeader.resize(static_cast(headerSize)); romFile.seekg (0, std::ios::beg); romFile.read (romHeader.data(), headerSize); @@ -128,7 +128,7 @@ bool NDSFactory::patchFat(const std::string& fatSectionPath, uint32_t shiftSize, return false; long sectionSize = sectionFile.tellg(); - fatBytes.resize(static_cast(sectionSize)); + fatBytes.resize(static_cast(sectionSize)); sectionFile.seekg (0, std::ios::beg);