From 9cc0465a102b586c457bd4fc9c1f6634aae7f974 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 9 Nov 2015 14:50:16 -0500 Subject: [PATCH] Re-express `/ sizeof(array[0])' as `/ sizeof(array_type)'. --- Source/Project64/N64 System/Mips/TLB class.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Project64/N64 System/Mips/TLB class.cpp b/Source/Project64/N64 System/Mips/TLB class.cpp index 9b18ba001..949f3fccc 100644 --- a/Source/Project64/N64 System/Mips/TLB class.cpp +++ b/Source/Project64/N64 System/Mips/TLB class.cpp @@ -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) {