2 small fixes: enum comparison and include. (PR #1182)

This commit is contained in:
Andrea 2023-02-19 09:46:07 +00:00 committed by GitHub
parent 1aa0e38696
commit fd8ed23b56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -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;

View File

@ -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);