diff --git a/xpcom/glue/nsID.h b/xpcom/glue/nsID.h index 0de9687a2de..f24db3d527d 100644 --- a/xpcom/glue/nsID.h +++ b/xpcom/glue/nsID.h @@ -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 */