A couple more int compare sign warning fixes.

This commit is contained in:
harry 2023-01-28 22:51:33 -05:00
parent 5a98a7fc0d
commit 727e403917
2 changed files with 3 additions and 3 deletions

View File

@ -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<unsigned int>(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<unsigned int>(X.S)|0x0100); j++)
{
if (watchpoint[i].endaddress)
{

View File

@ -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<unsigned int>(spec.samples * 4))
{
s_BufferSize = spec.samples * 4;
}