(tty_color_get_name_by_index): cleanup format compiler warning.

Found by GCC 6.2.0.

color-internal.c:186:33: error: format '%X' expects argument of type 'unsigned int', but argument 3 has type 'int' [-Werror=format=]

Signed-off-by: Andreas Mohr <and@gmx.li>
This commit is contained in:
Andreas Mohr 2016-12-06 08:08:47 +00:00 committed by Andrew Borodin
parent 238d3ac53c
commit 469dc1352b
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ tty_color_get_name_by_index (int idx)
if (idx < 256)
sprintf (name, "color%d", idx);
else
sprintf (name, "#%06X", idx & 0xFFFFFF);
sprintf (name, "#%06X", (unsigned int) idx & 0xFFFFFF);
return g_intern_string (name);
}
return "default";