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