mirror of https://github.com/xzeldon/htop.git
Settings: enclose casted macro argument in parenthesis
This commit is contained in:
parent
7891cdc552
commit
b85b718e69
|
@ -358,7 +358,7 @@ int Settings_write(const Settings* this, bool onCrash) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#define printSettingInteger(setting_, value_) \
|
#define printSettingInteger(setting_, value_) \
|
||||||
fprintf(fd, setting_ "=%d%c", (int) value_, separator);
|
fprintf(fd, setting_ "=%d%c", (int) (value_), separator);
|
||||||
#define printSettingString(setting_, value_) \
|
#define printSettingString(setting_, value_) \
|
||||||
fprintf(fd, setting_ "=%s%c", value_, separator);
|
fprintf(fd, setting_ "=%s%c", value_, separator);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue