Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negative bits xfered because of int overflow when xfer > 2 Gbytes/sec. #2

Open
reubenhwk opened this issue Aug 10, 2023 · 0 comments
Open

Comments

@reubenhwk
Copy link

diff --git a/src/ReportDefault.c b/src/ReportDefault.c
index 52f781a..d10f87f 100644
--- a/src/ReportDefault.c
+++ b/src/ReportDefault.c
@@ -70,7 +70,7 @@ extern "C" {
  */
 void reporter_printstats( Transfer_Info *stats ) {
     static char header_printed = 0;
-    int bytesxfered;
+    umax_size_t bytesxfered;
 
     byte_snprintf( buffer, sizeof(buffer)/2, (double) stats->TotalLen,
                    toupper( (int)stats->mFormat));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant