[apps] Replace sizeInBits>>2 sizeInBits/sizeof(uint32_t) in checksums

Change-Id: I4f96514caa4552d2158bb9ebdc328a6453554934
This commit is contained in:
Émilie Feral
2017-08-25 14:18:27 +02:00
parent eea1928ac9
commit be8a0c6df3
8 changed files with 8 additions and 8 deletions

View File

@@ -64,7 +64,7 @@ uint32_t FloatPairStore::storeChecksum() {
* clear the store when deleting pairs. However, this might trigger a bug? */
size_t dataLengthInBytes = m_numberOfPairs*2*sizeof(double);
assert((dataLengthInBytes & 0x3) == 0); // Assert that dataLengthInBytes is a multiple of 4
return Ion::crc32((uint32_t *)m_data, dataLengthInBytes>>2);
return Ion::crc32((uint32_t *)m_data, dataLengthInBytes/sizeof(uint32_t));
}
double FloatPairStore::defaultValue(int i) {