mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 14:31:10 +01:00
[array] Add a const to a cast
This commit is contained in:
1 parent
4ad443d5ea
commit
45afbdff2c
1 file changed
+2
-2
+2
-2
@@ -465,7 +465,7 @@ inline uint32_t hb_array_t<const char>::hash () const
|
||||
struct __attribute__((packed)) packed_uint32_t { uint32_t v; };
|
||||
for (; i + 4 <= this->length; i += 4)
|
||||
{
|
||||
current = current ^ hb_hash ((uint32_t) ((packed_uint32_t *) &this->arrayZ[i])->v);
|
||||
current = current ^ hb_hash ((uint32_t) ((const packed_uint32_t *) &this->arrayZ[i])->v);
|
||||
current = current * 16777619;
|
||||
}
|
||||
#endif
|
||||
@@ -490,7 +490,7 @@ inline uint32_t hb_array_t<const unsigned char>::hash () const
|
||||
struct __attribute__((packed)) packed_uint32_t { uint32_t v; };
|
||||
for (; i + 4 <= this->length; i += 4)
|
||||
{
|
||||
current = current ^ hb_hash ((uint32_t) ((packed_uint32_t *) &this->arrayZ[i])->v);
|
||||
current = current ^ hb_hash ((uint32_t) ((const packed_uint32_t *) &this->arrayZ[i])->v);
|
||||
current = current * 16777619;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user