Added two missing casts
This commit is contained in:
parent
7a299ec8a6
commit
4becc1f938
2 changed files with 3 additions and 2 deletions
|
|
@ -97,7 +97,7 @@ string source_context(const path& file,
|
||||||
in.seekg(pos, std::ios::beg);
|
in.seekg(pos, std::ios::beg);
|
||||||
|
|
||||||
scoped_array<char> buf(new char[len + 1]);
|
scoped_array<char> buf(new char[len + 1]);
|
||||||
in.read(buf.get(), len);
|
in.read(buf.get(), static_cast<std::streamsize>(len));
|
||||||
assert(in.gcount() == len);
|
assert(in.gcount() == len);
|
||||||
buf[len] = '\0';
|
buf[len] = '\0';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -543,7 +543,8 @@ void global_scope_t::normalize_report_options(const string& verb)
|
||||||
|
|
||||||
if (! rep.HANDLER(date_width_).specified)
|
if (! rep.HANDLER(date_width_).specified)
|
||||||
rep.HANDLER(date_width_)
|
rep.HANDLER(date_width_)
|
||||||
.on_with(none, format_date(CURRENT_DATE(), FMT_PRINTED).length());
|
.on_with(none, static_cast<long>(format_date(CURRENT_DATE(),
|
||||||
|
FMT_PRINTED).length()));
|
||||||
|
|
||||||
long date_width = rep.HANDLER(date_width_).value.to_long();
|
long date_width = rep.HANDLER(date_width_).value.to_long();
|
||||||
long payee_width = (rep.HANDLER(payee_width_).specified ?
|
long payee_width = (rep.HANDLER(payee_width_).specified ?
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue