GB Video: Fix warning

This commit is contained in:
Jeffrey Pfau 2016-02-21 12:00:23 -08:00
parent cbc3be7571
commit 2adc03bcbd
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ static void GBVideoSoftwareRendererDrawRange(struct GBVideoRenderer* renderer, i
}
color_t* row = &softwareRenderer->outputBuffer[softwareRenderer->outputBufferStride * y];
int x;
for (x = startX; x < endX & ~7; x += 8) {
for (x = startX; x < (endX & ~7); x += 8) {
row[x] = softwareRenderer->palette[softwareRenderer->row[x] & 0x7F];
row[x + 1] = softwareRenderer->palette[softwareRenderer->row[x + 1] & 0x7F];
row[x + 2] = softwareRenderer->palette[softwareRenderer->row[x + 2] & 0x7F];