Skip to content

Commit d862e2d

Browse files
committed
removed unnecessary casts
1 parent afc8a68 commit d862e2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/fread.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,17 +419,17 @@ static const char* filesize_to_str(const size_t fsize)
419419
if (ndigits == 0 || (fsize == (fsize >> shift << shift))) {
420420
if (i < sizeof(suffixes)) {
421421
snprintf(output, sizeof(output), "%"PRIu64"%cB (%"PRIu64" bytes)", // # notranslate
422-
(uint64_t)(fsize >> shift), suffixes[i], (uint64_t)fsize);
422+
(fsize >> shift), suffixes[i], fsize);
423423
return output;
424424
}
425425
} else {
426426
snprintf(output, sizeof(output), "%.*f%cB (%"PRIu64" bytes)", // # notranslate
427-
ndigits, (double)fsize / (1LL << shift), suffixes[i], (uint64_t)fsize);
427+
ndigits, (double)fsize / (1LL << shift), suffixes[i], fsize);
428428
return output;
429429
}
430430
}
431431
if (fsize == 1) return "1 byte";
432-
snprintf(output, sizeof(output), "%"PRIu64" bytes", (uint64_t)fsize); // # notranslate
432+
snprintf(output, sizeof(output), "%"PRIu64" bytes", fsize); // # notranslate
433433
return output;
434434
}
435435

0 commit comments

Comments
 (0)