mirror of https://github.com/stella-emu/stella.git
Fixed minor warnings in Windows.
This commit is contained in:
parent
f591ba92ce
commit
8fa253d68e
|
@ -86,9 +86,9 @@ using StringList = std::vector<std::string>;
|
|||
using ByteBuffer = std::unique_ptr<uInt8[]>;
|
||||
|
||||
// We use KB a lot; let's make a literal for it
|
||||
constexpr size_t operator "" _KB(unsigned long long size)
|
||||
constexpr uInt32 operator "" _KB(unsigned long long size)
|
||||
{
|
||||
return static_cast<size_t>(size * 1024);
|
||||
return static_cast<uInt32>(size * 1024);
|
||||
}
|
||||
|
||||
static const string EmptyString("");
|
||||
|
|
|
@ -108,7 +108,7 @@ string DebuggerParser::run(const string& command)
|
|||
getArgs(command, verb);
|
||||
commandResult.str("");
|
||||
|
||||
for(size_t i = 0; i < commands.size(); ++i)
|
||||
for(int i = 0; i < commands.size(); ++i)
|
||||
{
|
||||
if(BSPF::equalsIgnoreCase(verb, commands[i].cmdString))
|
||||
{
|
||||
|
|
|
@ -25,7 +25,7 @@ Cartridge2KWidget::Cartridge2KWidget(
|
|||
: CartDebugWidget(boss, lfont, nfont, x, y, w, h)
|
||||
{
|
||||
// Eventually, we should query this from the debugger/disassembler
|
||||
uInt16 size = cart.mySize;
|
||||
size_t size = cart.mySize;
|
||||
uInt16 start = (cart.myImage[size-3] << 8) | cart.myImage[size-4];
|
||||
start -= start % size;
|
||||
|
||||
|
|
Loading…
Reference in New Issue