mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-22 09:30:15 +00:00
2 small fixes: enum comparison and include. (PR #1182)
This commit is contained in:
parent
1aa0e38696
commit
fd8ed23b56
@ -37,7 +37,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#include "Joystick.h"
|
||||
#include "SoundCore.h"
|
||||
#include "SNESMAX.h"
|
||||
#include "ParallelPrinter.h"
|
||||
#include "Interface.h"
|
||||
|
||||
CmdLine g_cmdLine;
|
||||
|
@ -451,7 +451,7 @@ int GetDisassemblyLine(WORD nBaseAddress, DisasmLine_t& line_)
|
||||
void FormatOpcodeBytes(WORD nBaseAddress, DisasmLine_t& line_)
|
||||
{
|
||||
// 2.8.0.0 fix // TODO: FIX: show max 8 bytes for HEX
|
||||
const int nMaxOpBytes = min(line_.nOpbyte, DISASM_DISPLAY_MAX_OPCODES);
|
||||
const int nMaxOpBytes = std::min<int>(line_.nOpbyte, DISASM_DISPLAY_MAX_OPCODES);
|
||||
|
||||
char* cp = line_.sOpCodes;
|
||||
const char* const ep = cp + sizeof(line_.sOpCodes);
|
||||
|
Loading…
Reference in New Issue
Block a user