mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
Tweak ITS#7615 fix: Obey strict-aliasing rules.
Do not access a long long as an array of longs.
This commit is contained in:
parent
76f0a02485
commit
82b27c09c9
@ -3607,10 +3607,9 @@ static void
|
||||
mdb_hash_enc(MDB_val *val, char *encbuf)
|
||||
{
|
||||
mdb_hash_t h = mdb_hash_val(val, MDB_HASH_INIT);
|
||||
unsigned long *l = (unsigned long *)&h;
|
||||
|
||||
mdb_pack85(l[0], encbuf);
|
||||
mdb_pack85(l[1], encbuf+5);
|
||||
mdb_pack85(h, encbuf);
|
||||
mdb_pack85(h>>32, encbuf+5);
|
||||
encbuf[10] = '\0';
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user