mirror of
https://github.com/fltk/fltk.git
synced 2026-05-21 22:51:41 +08:00
Fix compiler warning.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11426 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+2
-2
@@ -176,7 +176,7 @@ void clear_cb(Fl_Widget *w, void *d)
|
||||
void prev_cb(Fl_Widget *w, void *d)
|
||||
{
|
||||
current_char--;
|
||||
char b[2] = { current_char, 0 };
|
||||
char b[2] = { (char)current_char, 0 };
|
||||
w->parent()->child(0)->copy_label(b);
|
||||
w->parent()->child(0)->redraw();
|
||||
}
|
||||
@@ -184,7 +184,7 @@ void prev_cb(Fl_Widget *w, void *d)
|
||||
void next_cb(Fl_Widget *w, void *d)
|
||||
{
|
||||
current_char++;
|
||||
char b[2] = { current_char, 0 };
|
||||
char b[2] = { (char)current_char, 0 };
|
||||
w->parent()->child(0)->copy_label(b);
|
||||
w->parent()->child(0)->redraw();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user