neutrino.cpp: fix possible build error

comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’
This commit is contained in:
2020-01-19 14:36:14 +01:00
parent 49ca52ad5a
commit 05549e1939

View File

@@ -486,7 +486,7 @@ int CNeutrinoApp::loadSetup(const char * fname)
g_settings.ci_rpr[i] = configfile.getInt32(cfg_key, 9);
}
#endif
for (int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) {
for (uint32_t i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) {
sprintf(cfg_key, "ci_ignore_messages_%d", i);
g_settings.ci_ignore_messages[i] = configfile.getInt32(cfg_key, 0);
}
@@ -1425,7 +1425,7 @@ void CNeutrinoApp::saveSetup(const char * fname)
configfile.setInt32(cfg_key, g_settings.ci_rpr[i]);
}
#endif
for (int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) {
for (uint32_t i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) {
sprintf(cfg_key, "ci_ignore_messages_%d", i);
configfile.setInt32(cfg_key, g_settings.ci_ignore_messages[i]);
}