Skip to content

Commit

Permalink
Merge pull request #79 from orbea/cli
Browse files Browse the repository at this point in the history
cli: Silence -Wformat warnings
  • Loading branch information
unknownbrackets committed Jun 4, 2023
2 parents 528c69b + 7400e91 commit e4bdee1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/cli.cpp
@@ -1,4 +1,5 @@
#include <algorithm>
#include <cinttypes>
#include <cstring>
#include <cstdio>
#include <cstdlib>
Expand Down Expand Up @@ -472,7 +473,7 @@ int main(int argc, char *argv[]) {
} else if (status == maxcso::TASK_SUCCESS) {
double ratio = total == 0 ? 0.0 : (written * 100.0) / total;
char temp[128];
sprintf(temp, "%lld -> %lld bytes (%.0f%%)\n", total, written, ratio);
sprintf(temp, "%" PRId64 " -> %" PRId64 " bytes (%.0f%%)\n", total, written, ratio);
statusInfo = temp;
} else {
// This shouldn't happen.
Expand Down

0 comments on commit e4bdee1

Please sign in to comment.