summaryrefslogtreecommitdiff
path: root/coreutils/dd.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/dd.c')
-rw-r--r--coreutils/dd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/dd.c b/coreutils/dd.c
index 9a149e2..cba9085 100644
--- a/coreutils/dd.c
+++ b/coreutils/dd.c
@@ -167,7 +167,7 @@ int dd_main(int argc, char **argv)
if (n == 0) {
break;
}
- if (n == bs) {
+ if ((size_t)n == bs) {
in_full++;
} else {
in_part++;
@@ -180,7 +180,7 @@ int dd_main(int argc, char **argv)
if (n < 0) {
bb_perror_msg_and_die("%s", outfile);
}
- if (n == bs) {
+ if ((size_t)n == bs) {
out_full++;
} else {
out_part++;