Settings: use size_t for meter count in header

Header.c:150:26: error: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Werror,-Wimplicit-int-conversion]
          colSettings->len = len;
                           ~ ^~~
This commit is contained in:
Christian Göttsche
2021-09-04 14:15:47 +02:00
committed by BenBE
parent 53732ab0bb
commit ae1816e563
2 changed files with 5 additions and 5 deletions

View File

@ -22,7 +22,7 @@ in the source distribution for its full text.
#define CONFIG_READER_MIN_VERSION 2
typedef struct {
uint8_t len;
size_t len;
char** names;
int* modes;
} MeterColumnSetting;