diff --git a/Pascal/FileEntry.cpp b/Pascal/FileEntry.cpp index ffbf206..20ed478 100644 --- a/Pascal/FileEntry.cpp +++ b/Pascal/FileEntry.cpp @@ -237,7 +237,7 @@ void FileEntry::truncateCommon(unsigned newSize) _lastBlock = 1 + _firstBlock + newSize / 512; _lastByte = newSize % 512; - if (_lastByte = 0) _lastByte = 512; + if (_lastByte == 0) _lastByte = 512; }