summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Settings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Settings.c b/Settings.c
index 44e91a47..ce10d996 100644
--- a/Settings.c
+++ b/Settings.c
@@ -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);