Skip to content

Commit

Permalink
Fix x86 compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Soreepeong committed Jan 17, 2022
1 parent 7da6925 commit 094f123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions XivAlexander/Apps/MainApp/Internal/VirtualSqPacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -772,12 +772,12 @@ struct XivAlexander::Apps::MainApp::Internal::VirtualSqPacks::Implementation {
}

std::vector<char> buf(65536);
Sqex::Align(size, buf.size()).IterateChunkedBreakable([&](uint64_t, uint64_t offset, uint64_t size) {
Sqex::Align<uint64_t>(size, buf.size()).IterateChunkedBreakable([&](uint64_t, uint64_t offset, uint64_t size) {
if (progressWindow.GetCancelEvent().Wait(0) == WAIT_OBJECT_0)
return false;

stream->ReadStream(offset, &buf[0], size);
out.Write(entry.ModOffset + offset, &buf[0], size);
out.Write(entry.ModOffset + offset, &buf[0], static_cast<size_t>(size));
progressCurrent += size;

return true;
Expand Down

0 comments on commit 094f123

Please sign in to comment.