aboutsummaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-01-12 16:40:22 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-01-12 16:40:22 +0800
commit7b7c24f6b041f166993b68d4e11c10bd283df2ae (patch)
tree6d4b667777c094176f41ade456ccea73170c1844 /filter
parent41f992cc225a2e62b25c8039b644c75afb7934c5 (diff)
downloadgsoc2013-evolution-7b7c24f6b041f166993b68d4e11c10bd283df2ae.tar.gz
gsoc2013-evolution-7b7c24f6b041f166993b68d4e11c10bd283df2ae.tar.zst
gsoc2013-evolution-7b7c24f6b041f166993b68d4e11c10bd283df2ae.zip
cast lenght specifiers to int.
2005-01-11 Not Zed <NotZed@Ximian.com> * filter-part.c (filter_part_expand_code): cast lenght specifiers to int. svn path=/trunk/; revision=28372
Diffstat (limited to 'filter')
-rw-r--r--filter/ChangeLog5
-rw-r--r--filter/filter-part.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog
index d55bd5b1e8..5c3327d9d0 100644
--- a/filter/ChangeLog
+++ b/filter/ChangeLog
@@ -1,3 +1,8 @@
+2005-01-11 Not Zed <NotZed@Ximian.com>
+
+ * filter-part.c (filter_part_expand_code): cast lenght specifiers
+ to int.
+
2004-12-02 Diego Sevilla Ruiz <dsevilla@dsevilla>
* filter.glade: Added label "Show filters for mail:".
diff --git a/filter/filter-part.c b/filter/filter-part.c
index 2ed6794876..d09381ae9d 100644
--- a/filter/filter-part.c
+++ b/filter/filter-part.c
@@ -489,7 +489,7 @@ filter_part_expand_code (FilterPart *ff, const char *source, GString *out)
fe = filter_part_find_element (ff, name);
d(printf("expand code: looking up variab le '%s' = %p\n", ff, name, fe));
if (fe) {
- g_string_append_printf (out, "%.*s", newstart-start, start);
+ g_string_append_printf (out, "%.*s", (int)(newstart-start), start);
filter_element_format_sexp (fe, out);
#if 0
} else if ((val = g_hash_table_lookup (ff->globals, name))) {
@@ -497,7 +497,7 @@ filter_part_expand_code (FilterPart *ff, const char *source, GString *out)
e_sexp_encode_string (out, val);
#endif
} else {
- g_string_append_printf (out, "%.*s", end-start+1, start);
+ g_string_append_printf (out, "%.*s", (int)(end-start+1), start);
}
start = end + 1;
}