update according to ostd

master
Daniel Kolesa 2017-01-29 15:17:43 +01:00
parent 01899074fd
commit 3bdb0c4d7b
1 changed files with 2 additions and 2 deletions

View File

@ -1809,7 +1809,7 @@ CsLoopState CsState::run_loop(CsBytecode *code) {
static bool cs_run_file(
CsState &cs, ostd::ConstCharRange fname, CsValue &ret
) {
ostd::Box<char[]> buf;
std::unique_ptr<char[]> buf;
size_t len;
ostd::FileStream f(fname, ostd::StreamMode::read);
@ -1818,7 +1818,7 @@ static bool cs_run_file(
}
len = f.size();
buf = ostd::make_box<char[]>(len + 1);
buf = std::make_unique<char[]>(len + 1);
if (!buf || f.get(buf.get(), len) != len) {
return false;
}