Skip to content

Commit

Permalink
BaseBlockEx: Cleanup variable scope.
Browse files Browse the repository at this point in the history
Codacy.
  • Loading branch information
lightningterror committed Jun 25, 2022
1 parent 539e285 commit 51887f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pcsx2/x86/BaseblockEx.cpp
Expand Up @@ -31,11 +31,11 @@ int BaseBlocks::LastIndex(u32 startpc) const
if (0 == blocks.size())
return -1;

int imin = 0, imax = blocks.size() - 1, imid;
int imin = 0, imax = blocks.size() - 1;

while (imin != imax)
{
imid = (imin + imax + 1) >> 1;
const int imid = (imin + imax + 1) >> 1;

if (blocks[imid].startpc > startpc)
imax = imid - 1;
Expand All @@ -52,10 +52,10 @@ BASEBLOCKEX* BaseBlocks::GetByX86(uptr ip)
if (0 == blocks.size())
return 0;

int imin = 0, imax = blocks.size() - 1, imid;
int imin = 0, imax = blocks.size() - 1;

while(imin != imax) {
imid = (imin+imax+1)>>1;
const int imid = (imin+imax+1)>>1;

if (blocks[imid].fnptr > ip)
imax = imid - 1;
Expand Down

0 comments on commit 51887f1

Please sign in to comment.