mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 18:14:24 +08:00
Silenced a compiler warning in ntfswipe (cosmetic)
Avoid a signed-to-unsigned compare warning
This commit is contained in:
parent
e736fea196
commit
cba621e822
@ -981,7 +981,7 @@ static s64 wipe_mft(ntfs_volume *vol, int byte, enum action act)
|
|||||||
// We know that the end marker will only take 4 bytes
|
// We know that the end marker will only take 4 bytes
|
||||||
size = le32_to_cpu(rec->bytes_in_use) - 4;
|
size = le32_to_cpu(rec->bytes_in_use) - 4;
|
||||||
|
|
||||||
if ((size <= 0) || (size > vol->mft_record_size)) {
|
if ((size <= 0) || (size > (int)vol->mft_record_size)) {
|
||||||
ntfs_log_error("Bad mft record %lld\n",
|
ntfs_log_error("Bad mft record %lld\n",
|
||||||
(long long)i);
|
(long long)i);
|
||||||
total = -1;
|
total = -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user