Minor bug fixes. Updated moon mission sample

This commit is contained in:
Pranav Srinivas Kumar
2019-12-04 15:33:27 -06:00
parent 5ff5c06ee6
commit f9b3e6696b
2 changed files with 27 additions and 9 deletions

View File

@@ -136,7 +136,7 @@ private:
}
std::cout << _prefix_text;
std::cout << _start;
float pos = _progress * static_cast<float>(_bar_width) / 100.0;
auto pos = static_cast<size_t>(_progress * static_cast<float>(_bar_width) / 100.0);
for (size_t i = 0; i < _bar_width; ++i) {
if (i < pos)
std::cout << _fill;