Bug 660335 - Followup to fix red.

This commit is contained in:
Justin Lebar 2011-06-08 15:06:01 -04:00
parent df4d68b517
commit 8dccb66a45

View File

@ -74,8 +74,6 @@ struct nsID {
*/
inline PRBool Equals(const nsID& other) const {
PR_STATIC_ASSERT(sizeof(nsID) == 64);
// First cast to void* in order to silence the alignment warnings.
return
((PRUint64*)(void*) &m0)[0] == ((PRUint64*)(void*) &other.m0)[0] &&
@ -108,6 +106,9 @@ struct nsID {
//@}
};
// Ensure that we didn't accidentally change the size of nsID.
PR_STATIC_ASSERT(sizeof(nsID) == 16);
/*
* Class IDs
*/