From 4e2d3854ab24697318e05863e99e26002bc7ecca Mon Sep 17 00:00:00 2001 From: bl0ckeduser Date: Tue, 15 Nov 2011 15:09:29 -0500 Subject: [PATCH] Make Microsoft-specific enum code more portable --- memmap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/memmap.cpp b/memmap.cpp index 3b7ebce1..811518eb 100644 --- a/memmap.cpp +++ b/memmap.cpp @@ -3897,7 +3897,7 @@ static bool8 ReadBPSPatch (Reader *r, long, int32 &rom_size) if(target_size > CMemory::MAX_ROM_SIZE) { delete[] data; return false; } //applying this patch will overflow Memory.ROM buffer - enum : uint32 { SourceRead, TargetRead, SourceCopy, TargetCopy }; + enum { SourceRead, TargetRead, SourceCopy, TargetCopy }; uint32 outputOffset = 0, sourceRelativeOffset = 0, targetRelativeOffset = 0; uint8 *patched_rom = new uint8[target_size]; @@ -3908,7 +3908,7 @@ static bool8 ReadBPSPatch (Reader *r, long, int32 &rom_size) uint32 mode = length & 3; length = (length >> 2) + 1; - switch(mode) { + switch((int)mode) { case SourceRead: while(length--) patched_rom[outputOffset++] = Memory.ROM[outputOffset]; break;