Fixed overflow bug introduced by the warning fixes
This commit is contained in:
parent
2899e3f852
commit
ca1560d53d
1 changed files with 3 additions and 2 deletions
|
|
@ -368,6 +368,7 @@ void format_t::format(std::ostream& out_str, scope_t& scope)
|
||||||
result = truncate(temp, elem->max_width);
|
result = truncate(temp, elem->max_width);
|
||||||
} else {
|
} else {
|
||||||
result = temp.extract();
|
result = temp.extract();
|
||||||
|
if (elem->min_width > temp.length())
|
||||||
for (std::size_t i = 0; i < elem->min_width - temp.length(); i++)
|
for (std::size_t i = 0; i < elem->min_width - temp.length(); i++)
|
||||||
result += " ";
|
result += " ";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue