Skip to content

Commit 94a8617

Browse files
committed
Fix typo in File.cpp
1 parent 464f001 commit 94a8617

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Os/File.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,13 @@ File::Status File::incrementalCrc(FwSizeType& size) {
237237
status = this->read(this->m_crc_buffer, size, File::WaitType::NO_WAIT);
238238
if (OP_OK == status) {
239239
FW_ASSERT(size <= FW_FILE_CHUNK_SIZE, FwAssertArgType(size));
240+
// FIXME: Utils::Hash should be integrated more carefully into File
240241
Utils::Hash hash;
241242
hash.setHashValue(U32(~this->m_crc));
242243
hash.update(this->m_crc_buffer, size);
243244
U32 crc;
244-
hash.finalize(crc) this->m_crc = ~crc;
245+
hash.finalize(crc);
246+
this->m_crc = ~crc;
245247
}
246248
}
247249
return status;

0 commit comments

Comments
 (0)