Avoid compiler warnings.
This commit is contained in:
parent
fab4acbfe4
commit
be675345ad
2 changed files with 9 additions and 9 deletions
|
@ -29,7 +29,7 @@
|
|||
*
|
||||
* This file is part of the "ctk" console GUI toolkit for cc65
|
||||
*
|
||||
* $Id: ctk-conio-service.c,v 1.1 2006/06/17 22:41:15 adamdunkels Exp $
|
||||
* $Id: ctk-conio-service.c,v 1.2 2006/08/13 14:08:43 oliverschmidt Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -208,7 +208,7 @@ draw_widget(struct ctk_widget *w,
|
|||
}
|
||||
x = xpos;
|
||||
|
||||
len = strlen(w->widget.icon.title);
|
||||
len = (unsigned char)strlen(w->widget.icon.title);
|
||||
if(x + len >= sizex) {
|
||||
x = sizex - len;
|
||||
}
|
||||
|
@ -491,10 +491,10 @@ s_ctk_draw_menus(struct ctk_menus *menus)
|
|||
|
||||
/* Draw desktopmenu */
|
||||
if(wherex() + strlen(menus->desktopmenu->title) + 1 >= sizex) {
|
||||
gotoxy(sizex - strlen(menus->desktopmenu->title) - 1, 0);
|
||||
gotoxy(sizex - (unsigned char)strlen(menus->desktopmenu->title) - 1, 0);
|
||||
} else {
|
||||
cclear(sizex - wherex() -
|
||||
strlen(menus->desktopmenu->title) - 1);
|
||||
(unsigned char)strlen(menus->desktopmenu->title) - 1);
|
||||
}
|
||||
draw_menu(menus->desktopmenu, menus->desktopmenu == menus->open);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue