compiler warning
This commit is contained in:
@@ -510,7 +510,7 @@ int main() {
|
||||
vector<string> row;
|
||||
templates->readLineFromStream(__FILE__, false, &dummystr, &lineNo, &row, &errorDescription, NULL, NULL);
|
||||
const DataField* fields = NULL;
|
||||
for (size_t i = 0; i < sizeof(checks) / sizeof(checks[0]); i++) {
|
||||
for (unsigned int i = 0; i < sizeof(checks) / sizeof(checks[0]); i++) {
|
||||
string check[5] = checks[i];
|
||||
istringstream isstr(check[0]);
|
||||
string expectStr = check[1];
|
||||
|
||||
@@ -163,7 +163,7 @@ int main() {
|
||||
vector<SlaveSymbolString*> sstrs;
|
||||
mstrs.resize(1);
|
||||
sstrs.resize(1);
|
||||
for (size_t i = 0; i < sizeof(checks) / sizeof(checks[0]); i++) {
|
||||
for (unsigned int i = 0; i < sizeof(checks) / sizeof(checks[0]); i++) {
|
||||
string check[5] = checks[i];
|
||||
string inputStr = check[1];
|
||||
string flags = check[4];
|
||||
|
||||
@@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user