diff --git a/src/tools/fs_shell/file_map.cpp b/src/tools/fs_shell/file_map.cpp index 79632da6cb..f75f38fcdd 100644 --- a/src/tools/fs_shell/file_map.cpp +++ b/src/tools/fs_shell/file_map.cpp @@ -368,7 +368,7 @@ FileMap::Translate(fssh_off_t offset, fssh_size_t size, fssh_file_io_vec* vecs, } if (offset + size > fSize) { if (align > 1) { - fssh_off_t alignedSize = (fSize + align - 1) & ~(off_t)(align - 1); + fssh_off_t alignedSize = (fSize + align - 1) & ~(fssh_off_t)(align - 1); if (offset + size >= alignedSize) padLastVec = alignedSize - fSize; }