Settings: enclose casted macro argument in parenthesis

This commit is contained in:
Christian Göttsche 2021-09-02 22:32:42 +02:00 committed by BenBE
parent 7891cdc552
commit b85b718e69
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ int Settings_write(const Settings* this, bool onCrash) {
}
#define printSettingInteger(setting_, value_) \
fprintf(fd, setting_ "=%d%c", (int) value_, separator);
fprintf(fd, setting_ "=%d%c", (int) (value_), separator);
#define printSettingString(setting_, value_) \
fprintf(fd, setting_ "=%s%c", value_, separator);