From cb0552f7879383408b30baf21102bc11549cfd19 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 27 Jan 2026 10:44:40 +0100 Subject: [PATCH] fix progressbar for large values of count --- hprint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hprint.cpp b/hprint.cpp index 7b475af9..e6bd4443 100644 --- a/hprint.cpp +++ b/hprint.cpp @@ -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