Re-express `/ sizeof(array[0])' as `/ sizeof(array_type)'.
This commit is contained in:
parent
8168dcc42b
commit
9cc0465a10
|
@ -303,7 +303,8 @@ void CTLB::RecordDifference( CLog &LogFile, const CTLB& rTLB)
|
|||
|
||||
bool CTLB::operator == (const CTLB& rTLB) const
|
||||
{
|
||||
for (size_t i = 0, n = sizeof(m_tlb)/sizeof(m_tlb[0]); i < n; i++)
|
||||
const size_t n = sizeof(m_tlb) / sizeof(TLB_ENTRY);
|
||||
for (size_t i = 0; i < n; i++)
|
||||
{
|
||||
if (m_tlb[i].EntryDefined != rTLB.m_tlb[i].EntryDefined)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue