commands: digest: Use MAX_LFS_FILESIZE instead of ~0
Loff_t is a signed type, so ~0 is a negative number. While it works OK
due to clamping/conversion to ulong when passed to
digest_file_window(), it is better not to rely on that fact and use an
appropriate constant.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent b77582e commit 3d036263a42c2fd89272a68c457d31018a878de5
@Andrey Smirnov Andrey Smirnov authored on 12 Jan 2019
Sascha Hauer committed on 16 Jan 2019
Showing 1 changed file
View
commands/digest.c