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

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);