Silenced a compiler warning in ntfswipe (cosmetic)

Avoid a signed-to-unsigned compare warning
This commit is contained in:
Jean-Pierre André 2015-11-09 15:58:00 +01:00
parent e736fea196
commit cba621e822

View File

@ -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;