[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

@@ -29,7 +29,7 @@ uint32_t InteractiveCurveViewRange::rangeChecksum() {
float data[5] = {m_xMin, m_xMax, m_yMin, m_yMax, m_yAuto ? 1.0f : 0.0f};
size_t dataLengthInBytes = 5*sizeof(float);
assert((dataLengthInBytes & 0x3) == 0); // Assert that dataLengthInBytes is a multiple of 4
return Ion::crc32((uint32_t *)data, dataLengthInBytes>>2);
return Ion::crc32((uint32_t *)data, dataLengthInBytes/sizeof(uint32_t));
}
bool InteractiveCurveViewRange::yAuto() {