Address gcc complaint

This commit is contained in:
Andy McFadden 2015-01-09 22:28:41 -08:00
parent 3d3c19d67f
commit 900b4c7757

View File

@ -116,7 +116,7 @@ static DIError TestImage(DiskImg* pImg, DiskImg::SectorOrder imageOrder,
dierr = kDIErrNone;
break; /* allow it if earlier stuff was okay */
}
if (catTrack == sctBuf[2] & 0x7f && catSect == sctBuf[3] & 0x7f) {
if (catTrack == (sctBuf[2] & 0x7f) && catSect == (sctBuf[3] & 0x7f)) {
// current-sector values matched, check for the end-of-entry bits
foundGood++;
if (sctBuf[0x0f] == 0x8d && sctBuf[0x1f] == 0x8d &&