From 8ebe3ec6209bafbf788b8df085ac80f1f7fc5523 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Mon, 17 Sep 2012 17:44:49 -0400 Subject: [PATCH] %d -> %u for unsigned --- termite.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/termite.cc b/termite.cc index dac0d84..bb94912 100644 --- a/termite.cc +++ b/termite.cc @@ -162,7 +162,7 @@ static void draw_marker(cairo_t *cr, long x, long y, unsigned id) { cairo_set_font_size(cr, 9); cairo_move_to(cr, static_cast(x), static_cast(y + 7)); - snprintf(buffer, 10, "%d", id); + snprintf(buffer, 10, "%u", id); cairo_show_text(cr, buffer); }