diff --git a/Source/Core/Core/IOS/ES/Formats.cpp b/Source/Core/Core/IOS/ES/Formats.cpp index 602811a83c..7e5541d723 100644 --- a/Source/Core/Core/IOS/ES/Formats.cpp +++ b/Source/Core/Core/IOS/ES/Formats.cpp @@ -258,7 +258,7 @@ std::vector TicketReader::GetRawTicketView(u32 ticket_num) const std::memcpy(view.data(), &view_id, sizeof(view_id)); // Copy the rest of the ticket view structure from the ticket. - view.insert(view.end(), view_start, view_start + sizeof(TicketView) - sizeof(view_id)); + view.insert(view.end(), view_start, view_start + (sizeof(TicketView) - sizeof(view_id))); _assert_(view.size() == sizeof(TicketView)); return view;