diff --git a/src/debug.cpp b/src/debug.cpp index dc0085e9..a548365c 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -815,7 +815,7 @@ static void breakpoint(uint8 *opcode, uint16 A, int size) { // TXS and TSX only deal with the pointer. if (watchpoint[i].flags & stackop) { - for (j = (stackopstartaddr|0x0100); j <= (stackopendaddr|0x0100); j++) + for (j = (stackopstartaddr|0x0100); j <= (static_cast(stackopendaddr)|0x0100); j++) { if (watchpoint[i].endaddress) { @@ -859,7 +859,7 @@ static void breakpoint(uint8 *opcode, uint16 A, int size) { // Pulls from stack if (watchpoint[i].flags & WP_R) { - for (j = (StackAddrBackup|0x0100); j < (X.S|0x0100); j++) + for (j = (StackAddrBackup|0x0100); j < (static_cast(X.S)|0x0100); j++) { if (watchpoint[i].endaddress) { diff --git a/src/drivers/Qt/sdl-sound.cpp b/src/drivers/Qt/sdl-sound.cpp index 99b3b495..83c3afb5 100644 --- a/src/drivers/Qt/sdl-sound.cpp +++ b/src/drivers/Qt/sdl-sound.cpp @@ -262,7 +262,7 @@ InitSound() s_BufferSize = soundbufsize * soundrate / 1000; // For safety, set a bare minimum: - if (s_BufferSize < spec.samples * 4) + if (s_BufferSize < static_cast(spec.samples * 4)) { s_BufferSize = spec.samples * 4; }