Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #1004 from comex/warning-fixes-2
Two trivial warning fixes
  • Loading branch information
shuffle2 committed Sep 6, 2014
2 parents 1b23432 + 48ef6fc commit 227b79b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Core/GeckoCode.cpp
Expand Up @@ -96,10 +96,10 @@ static bool InstallCodeHandler()
for (unsigned int h = 0; h < data.length(); h += 4)
{
// Patch MMIO address
if (Memory::ReadUnchecked_U32(INSTALLER_BASE_ADDRESS + h) == (0x3f000000 | ((mmioAddr ^ 1) << 8)))
if (Memory::ReadUnchecked_U32(INSTALLER_BASE_ADDRESS + h) == (0x3f000000u | ((mmioAddr ^ 1) << 8)))
{
NOTICE_LOG(ACTIONREPLAY, "Patching MMIO access at %08x", INSTALLER_BASE_ADDRESS + h);
Memory::Write_U32(0x3f000000 | mmioAddr << 8, INSTALLER_BASE_ADDRESS + h);
Memory::Write_U32(0x3f000000u | mmioAddr << 8, INSTALLER_BASE_ADDRESS + h);
}
}

Expand Down
16 changes: 0 additions & 16 deletions Source/Core/VideoCommon/TextureDecoder_x64.cpp
Expand Up @@ -184,22 +184,6 @@ static inline void DecodeBytes_IA4(u32 *dst, const u8 *src)
}
}

static inline void DecodeBytes_RGB5A3(u32 *dst, const u16 *src)
{
dst[0] = DecodePixel_RGB5A3(Common::swap16(src[0]));
dst[1] = DecodePixel_RGB5A3(Common::swap16(src[1]));
dst[2] = DecodePixel_RGB5A3(Common::swap16(src[2]));
dst[3] = DecodePixel_RGB5A3(Common::swap16(src[3]));
}

static inline void DecodeBytes_RGBA8(u32 *dst, const u16 *src, const u16 * src2)
{
dst[0] = ((src[0] & 0xFF) << 24) | ((src[0] & 0xFF00)>>8) | (src2[0] << 8);
dst[1] = ((src[1] & 0xFF) << 24) | ((src[1] & 0xFF00)>>8) | (src2[1] << 8);
dst[2] = ((src[2] & 0xFF) << 24) | ((src[2] & 0xFF00)>>8) | (src2[2] << 8);
dst[3] = ((src[3] & 0xFF) << 24) | ((src[3] & 0xFF00)>>8) | (src2[3] << 8);
}

#ifdef CHECK
static inline u32 makeRGBA(int r, int g, int b, int a)
{
Expand Down

0 comments on commit 227b79b

Please sign in to comment.