Resolved a couple signed vs unsigned miscompare warnings.
This commit is contained in:
parent
d52c4c24b6
commit
fda056cdc3
|
@ -218,7 +218,7 @@ void ConsoleViewGL_t::transfer2LocalBuffer(void)
|
||||||
{
|
{
|
||||||
int i=0, hq = 0;
|
int i=0, hq = 0;
|
||||||
int numPixels = nes_shm->video.ncol * nes_shm->video.nrow;
|
int numPixels = nes_shm->video.ncol * nes_shm->video.nrow;
|
||||||
int cpSize = numPixels * 4;
|
unsigned int cpSize = numPixels * 4;
|
||||||
uint8_t *src, *dest;
|
uint8_t *src, *dest;
|
||||||
|
|
||||||
if ( cpSize > localBufSize )
|
if ( cpSize > localBufSize )
|
||||||
|
|
|
@ -135,7 +135,7 @@ void ConsoleViewSDL_t::transfer2LocalBuffer(void)
|
||||||
{
|
{
|
||||||
int i=0, hq = 0;
|
int i=0, hq = 0;
|
||||||
int numPixels = nes_shm->video.ncol * nes_shm->video.nrow;
|
int numPixels = nes_shm->video.ncol * nes_shm->video.nrow;
|
||||||
int cpSize = numPixels * 4;
|
unsigned int cpSize = numPixels * 4;
|
||||||
uint8_t *src, *dest;
|
uint8_t *src, *dest;
|
||||||
|
|
||||||
if ( cpSize > localBufSize )
|
if ( cpSize > localBufSize )
|
||||||
|
|
Loading…
Reference in New Issue