compiler warning

This commit is contained in:
john30
2017-05-13 18:33:00 +02:00
parent 92f575a090
commit bf0fcd081d
4 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -121,9 +121,10 @@ int main(int argc, char** argv) {
int masterCnt = 0, slaveCnt = 0;
for (int i=0; i<256; i++) {
if (isMaster(i)) {
symbol_t address = static_cast<symbol_t>(i);
if (isMaster(address)) {
masterCnt++;
} else if (isValidAddress(i, false)) {
} else if (isValidAddress(address, false)) {
slaveCnt++;
}
}