We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 464f001 commit 94a8617Copy full SHA for 94a8617
1 file changed
Os/File.cpp
@@ -237,11 +237,13 @@ File::Status File::incrementalCrc(FwSizeType& size) {
237
status = this->read(this->m_crc_buffer, size, File::WaitType::NO_WAIT);
238
if (OP_OK == status) {
239
FW_ASSERT(size <= FW_FILE_CHUNK_SIZE, FwAssertArgType(size));
240
+ // FIXME: Utils::Hash should be integrated more carefully into File
241
Utils::Hash hash;
242
hash.setHashValue(U32(~this->m_crc));
243
hash.update(this->m_crc_buffer, size);
244
U32 crc;
- hash.finalize(crc) this->m_crc = ~crc;
245
+ hash.finalize(crc);
246
+ this->m_crc = ~crc;
247
}
248
249
return status;
0 commit comments