From 8f9cc9a2621a21cd4b8bf7b744f02d9e4ed4eb9b Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 18 Jan 2009 11:03:13 +0100 Subject: [PATCH] widgets: use integer instead of int8_t The computer is smart, and the compiler also. Should fix: widgets/progressbar.c:451: warning: array subscript has type `char' Signed-off-by: Julien Danjou --- widgets/graph.c | 2 +- widgets/progressbar.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/widgets/graph.c b/widgets/graph.c index 52c657a3f..a8e0505e3 100644 --- a/widgets/graph.c +++ b/widgets/graph.c @@ -307,7 +307,7 @@ luaA_graph_plot_properties_set(lua_State *L) size_t len; plot_t *plot = NULL; xcolor_init_request_t reqs[3]; - int8_t i, reqs_nbr = -1; + int i, reqs_nbr = -1; title = luaL_checkstring(L, 2); luaA_checktable(L, 3); diff --git a/widgets/progressbar.c b/widgets/progressbar.c index 271e28114..e22e30c2e 100644 --- a/widgets/progressbar.c +++ b/widgets/progressbar.c @@ -441,7 +441,7 @@ luaA_progressbar_bar_properties_set(lua_State *L) bar_t *bar; progressbar_data_t *d = (*widget)->data; xcolor_init_request_t reqs[6]; - int8_t i, reqs_nbr = -1; + int i, reqs_nbr = -1; luaA_checktable(L, 3);