From b80d83376999c6ef0741b678039faab39bed810f Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 2 Feb 2011 06:00:54 +0000 Subject: [PATCH] Avoid a warning on 32-bits platforms --- src/editor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor.c b/src/editor.c index b9ed228..f55ad22 100644 --- a/src/editor.c +++ b/src/editor.c @@ -346,7 +346,7 @@ void editor_set_font(Editor * editor, char const * font) /* editor_set_wrap_mode */ void editor_set_wrap_mode(Editor * editor, GtkWrapMode wrap) { - size_t i; + unsigned int i; char buf[10]; gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(editor->view), @@ -354,7 +354,7 @@ void editor_set_wrap_mode(Editor * editor, GtkWrapMode wrap) for(i = 0; i < sizeof(_editor_wrap) / sizeof(*_editor_wrap); i++) if(_editor_wrap[i].wrap == wrap) { - snprintf(buf, sizeof(buf), "%lu", i); + snprintf(buf, sizeof(buf), "%u", i); config_set(editor->config, NULL, "wrap", buf); return; }