Resolved a couple signed vs unsigned miscompare warnings.

This commit is contained in:
mjbudd77 2021-03-19 22:01:12 -04:00
parent d52c4c24b6
commit fda056cdc3
2 changed files with 2 additions and 2 deletions

View File

@ -218,7 +218,7 @@ void ConsoleViewGL_t::transfer2LocalBuffer(void)
{
int i=0, hq = 0;
int numPixels = nes_shm->video.ncol * nes_shm->video.nrow;
int cpSize = numPixels * 4;
unsigned int cpSize = numPixels * 4;
uint8_t *src, *dest;
if ( cpSize > localBufSize )

View File

@ -135,7 +135,7 @@ void ConsoleViewSDL_t::transfer2LocalBuffer(void)
{
int i=0, hq = 0;
int numPixels = nes_shm->video.ncol * nes_shm->video.nrow;
int cpSize = numPixels * 4;
unsigned int cpSize = numPixels * 4;
uint8_t *src, *dest;
if ( cpSize > localBufSize )