2 small fixes: enum comparison and include.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
Andrea Odetti 2023-02-18 20:09:56 +00:00
parent 1aa0e38696
commit 9b01c18f65
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);