mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps] Replace sizeInBits>>2 sizeInBits/sizeof(uint32_t) in checksums
Change-Id: I4f96514caa4552d2158bb9ebdc328a6453554934
This commit is contained in:
@@ -31,7 +31,7 @@ uint32_t Function::checksum() {
|
||||
strlcpy(data, m_text, TextField::maxBufferSize());
|
||||
data[k_dataLengthInBytes-2] = m_name != nullptr ? m_name[0] : 0;
|
||||
data[k_dataLengthInBytes-1] = m_active ? 1 : 0;
|
||||
return Ion::crc32((uint32_t *)data, k_dataLengthInBytes>>2);
|
||||
return Ion::crc32((uint32_t *)data, k_dataLengthInBytes/sizeof(uint32_t));
|
||||
}
|
||||
|
||||
void Function::setContent(const char * c) {
|
||||
|
||||
Reference in New Issue
Block a user