Fixed minor warnings in Windows.

This commit is contained in:
Stephen Anthony 2019-09-23 20:18:54 -02:30
parent f591ba92ce
commit 8fa253d68e
3 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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