mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 659546 - Silence clang warnings about alignment requirement increase in nsID::Equals after bug 164580; r=bsmedberg
This commit is contained in:
parent
15ac80982f
commit
31f121187d
@ -73,9 +73,10 @@ struct nsID {
|
||||
*/
|
||||
|
||||
inline PRBool Equals(const nsID& other) const {
|
||||
// First cast to void* in order to silence the alignment warnings.
|
||||
return
|
||||
((PRUint64*) &m0)[0] == ((PRUint64*) &other.m0)[0] &&
|
||||
((PRUint64*) &m0)[1] == ((PRUint64*) &other.m0)[1];
|
||||
((PRUint64*)(void*) &m0)[0] == ((PRUint64*)(void*) &other.m0)[0] &&
|
||||
((PRUint64*)(void*) &m0)[1] == ((PRUint64*)(void*) &other.m0)[1];
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user