diff options
Diffstat (limited to 'filter/filter-int.c')
-rw-r--r-- | filter/filter-int.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/filter/filter-int.c b/filter/filter-int.c index 873e6a4a33..ce254c4f4a 100644 --- a/filter/filter-int.c +++ b/filter/filter-int.c @@ -264,6 +264,10 @@ static void format_sexp (FilterElement *fe, GString *out) { FilterInt *fs = (FilterInt *)fe; - - g_string_append_printf (out, "%d", fs->val); + + if (fs->val < 0) + /* See #364731 #457523 C6*/ + g_string_append_printf (out, "(- %d)", (fs->val * -1)); + else + g_string_append_printf (out, "%d", fs->val); } |