summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorlioncash <mathew1900@hotmail.com>2013-01-15 21:15:31 -0500
committerlioncash <mathew1900@hotmail.com>2013-01-15 21:15:31 -0500
commitddf23094c299cb061baaa7a110ecb7413130d094 (patch)
treea8f6336909f6a94fd9145c513306bc32beeb10b2 /Source/Core
parent6612763a9a98bd7f371b13beda654c34ffd4d81d (diff)
Fix two unsigned/signed mismatch warnings.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/VideoCommon/Src/BPStructs.cpp2
-rw-r--r--Source/Core/VideoCommon/Src/LightingShaderGen.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/Src/BPStructs.cpp b/Source/Core/VideoCommon/Src/BPStructs.cpp
index c975b12240..9ba2afbbd1 100644
--- a/Source/Core/VideoCommon/Src/BPStructs.cpp
+++ b/Source/Core/VideoCommon/Src/BPStructs.cpp
@@ -517,7 +517,7 @@ void BPWritten(const BPCmd& bp)
// AR and GB tiles are stored in separate TMEM banks => can't use a single memcpy for everything
u32 tmem_addr_odd = tmem_cfg.preload_tmem_odd * TMEM_LINE_SIZE;
- for (int i = 0; i < tmem_cfg.preload_tile_info.count; ++i)
+ for (u32 i = 0; i < tmem_cfg.preload_tile_info.count; ++i)
{
if (tmem_addr_even + TMEM_LINE_SIZE > TMEM_SIZE ||
tmem_addr_even + TMEM_LINE_SIZE > TMEM_SIZE)
diff --git a/Source/Core/VideoCommon/Src/LightingShaderGen.cpp b/Source/Core/VideoCommon/Src/LightingShaderGen.cpp
index a506acadfc..f32e5dfeee 100644
--- a/Source/Core/VideoCommon/Src/LightingShaderGen.cpp
+++ b/Source/Core/VideoCommon/Src/LightingShaderGen.cpp
@@ -23,7 +23,7 @@
int GetLightingShaderId(u32* out)
{
- for (int i = 0; i < xfregs.numChan.numColorChans; ++i)
+ for (u32 i = 0; i < xfregs.numChan.numColorChans; ++i)
{
out[i] = xfregs.color[i].enablelighting ?
(u32)xfregs.color[i].hex :