1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-20 03:49:43 +00:00

fix progressbar for large values of count

This commit is contained in:
Zeno Rogue
2026-01-27 10:44:40 +01:00
parent 8026b211c6
commit cb0552f787

View File

@@ -583,7 +583,7 @@ struct progressbar : indenter_finish {
step++;
while(step >= drawat && total) {
count++;
drawat = (total * (count+1)) / PBSIZE;
drawat = (total * (count+(long long) 1)) / PBSIZE;
fprintf(stderr, "%s [", get_stamp().c_str());
for(int k=0; k<count; k++) fprintf(stderr, "#");
for(int k=count; k<64; k++) fprintf(stderr, "-");