VC++ warnings fixes

This commit is contained in:
Bertrand Songis
2019-05-18 11:18:13 +02:00
parent a9e90d6a6e
commit 1d54edff41
2 changed files with 2 additions and 2 deletions
@@ -118,7 +118,7 @@ class SwitchesConversionTable: public ConversionTable {
if (version >= 218) {
addConversion(RawSwitch(SWITCH_TYPE_TELEMETRY, -1), -val+offset);
addConversion(RawSwitch(SWITCH_TYPE_TELEMETRY, 1), val++);
for (unsigned i=1; i<=CPN_MAX_SENSORS; i++) {
for (int i=1; i<=CPN_MAX_SENSORS; i++) {
addConversion(RawSwitch(SWITCH_TYPE_SENSOR, -i), -val+offset);
addConversion(RawSwitch(SWITCH_TYPE_SENSOR, i), val++);
}
+1 -1
View File
@@ -23,7 +23,7 @@
#include <QtCore>
constexpr unsigned CPN_MAX_SENSORS = 60;
constexpr int CPN_MAX_SENSORS = 60;
class SensorData {
Q_DECLARE_TR_FUNCTIONS(SensorData)