From 900b4c77571d695356fae8dfe374faa6bf378042 Mon Sep 17 00:00:00 2001 From: Andy McFadden Date: Fri, 9 Jan 2015 22:28:41 -0800 Subject: [PATCH] Address gcc complaint --- diskimg/Gutenberg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diskimg/Gutenberg.cpp b/diskimg/Gutenberg.cpp index 2f2ae5e..7cc5a5d 100644 --- a/diskimg/Gutenberg.cpp +++ b/diskimg/Gutenberg.cpp @@ -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 &&