summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-10-09 20:14:39 -0400
committerLioncash <mathew1800@gmail.com>2014-10-09 20:19:01 -0400
commitbb377d0fc3ca04d3febdb8c280e3a46b21a5893a (patch)
tree67cebc667a703424e3b96253a91a6876cef7ad03 /Source/Core
parent6eb2b6ef7a608129c80dade2c8881e468b574397 (diff)
PPCAnalyst: Remove unnecessary casts
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/PowerPC/PPCAnalyst.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/Core/PowerPC/PPCAnalyst.h b/Source/Core/Core/PowerPC/PPCAnalyst.h
index a591c7f489..110f663ad7 100644
--- a/Source/Core/Core/PowerPC/PPCAnalyst.h
+++ b/Source/Core/Core/PowerPC/PPCAnalyst.h
@@ -84,16 +84,16 @@ struct BlockRegStats
inline void SetInputRegister(int reg, short opindex)
{
if (firstRead[reg] == -1)
- firstRead[reg] = (short)(opindex);
- lastRead[reg] = (short)(opindex);
+ firstRead[reg] = opindex;
+ lastRead[reg] = opindex;
numReads[reg]++;
}
inline void SetOutputRegister(int reg, short opindex)
{
if (firstWrite[reg] == -1)
- firstWrite[reg] = (short)(opindex);
- lastWrite[reg] = (short)(opindex);
+ firstWrite[reg] = opindex;
+ lastWrite[reg] = opindex;
numWrites[reg]++;
}