From 892fec69052fb9e3496fb8bb775fc1463c4e1def Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Fri, 24 Jan 2020 23:09:48 -0600 Subject: [PATCH] [nostalgia/tools/pack] Cleanup --- src/nostalgia/tools/pack.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nostalgia/tools/pack.cpp b/src/nostalgia/tools/pack.cpp index 7680ffb1..8a5936ce 100644 --- a/src/nostalgia/tools/pack.cpp +++ b/src/nostalgia/tools/pack.cpp @@ -17,10 +17,10 @@ #include "pack/pack.hpp" -static void writeFileBuff(const std::string &path, std::vector &buff) { +static void writeFileBuff(const std::string &path, std::vector &buff) { try { std::ofstream f(path, std::ios::binary); - f.write(reinterpret_cast(buff.data()), buff.size()); + f.write(buff.data(), buff.size()); } catch (const std::fstream::failure&) { throw OxError(2); } @@ -37,7 +37,7 @@ void run(ox::ClArgs args) { std::cerr << "error: must specify a destination ROM file\n"; throw OxError(1); } - std::vector buff(32 * ox::units::MB); + std::vector buff(32 * ox::units::MB); oxThrowError(ox::FileSystem32::format(buff.data(), buff.size())); ox::PassThroughFS src(argSrc.c_str()); ox::FileSystem32 dst(ox::FileStore32(buff.data(), buff.size()));