From 577af09d1bf803e34c8323b44c4407056b1e6b81 Mon Sep 17 00:00:00 2001 From: Rohit Nirmal Date: Sat, 10 Jan 2015 22:40:58 -0600 Subject: [PATCH] Fix -Wsign-compare warnings. --- Source/Core/Core/HW/MemmapFunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/HW/MemmapFunctions.cpp b/Source/Core/Core/HW/MemmapFunctions.cpp index d52bb6f5ad..b97b2f632e 100644 --- a/Source/Core/Core/HW/MemmapFunctions.cpp +++ b/Source/Core/Core/HW/MemmapFunctions.cpp @@ -616,7 +616,7 @@ enum TLBLookupResult static __forceinline TLBLookupResult LookupTLBPageAddress(const XCheckTLBFlag flag, const u32 vpa, u32 *paddr) { - int tag = vpa >> HW_PAGE_INDEX_SHIFT; + u32 tag = vpa >> HW_PAGE_INDEX_SHIFT; PowerPC::tlb_entry *tlbe = &PowerPC::ppcState.tlb[flag == FLAG_OPCODE][tag & HW_PAGE_INDEX_MASK]; if (tlbe->tag[0] == tag) {