mirror of
https://github.com/p-ranav/indicators.git
synced 2025-12-16 04:18:51 +08:00
Minor bug fixes. Updated moon mission sample
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user