diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-04-02 18:20:12 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-04-02 18:58:21 -0400 |
commit | d219849e60db7096bfb111c9ec2555d825bf0c95 (patch) | |
tree | 637194df890892a4e7554ec8df9d237ff2c6f1cc | |
parent | 7c2da2ca8824693c7eeb83e4b22174c33b2a480a (diff) |
basic/copy: remove unnecessary cast
Both types are unsigned, so the cast to the longer type is automatic.
-rw-r--r-- | src/basic/copy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/copy.c b/src/basic/copy.c index 10c03a8b52..e2db4be9ff 100644 --- a/src/basic/copy.c +++ b/src/basic/copy.c @@ -94,8 +94,8 @@ int copy_bytes(int fdf, int fdt, uint64_t max_bytes, bool try_reflink) { if (max_bytes <= 0) return 1; /* return > 0 if we hit the max_bytes limit */ - if ((uint64_t) m > max_bytes) - m = (size_t) max_bytes; + if (m > max_bytes) + m = max_bytes; } /* First try copy_file_range(), unless we already tried */ |