A couple more int compare sign warning fixes.
This commit is contained in:
parent
5a98a7fc0d
commit
727e403917
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue