diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2016-03-26 01:34:10 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2016-03-26 01:34:10 +0000 |
| commit | 9de6339d8167d8e49ce02780fdef7e9aeb4304e6 (patch) | |
| tree | a3e97f16a58e1d1c233703c4f8e18bd6e3a83f44 /test | |
| parent | 259df57b819f45da5270a8cc8a295b3caeaea7b0 (diff) | |
Fix compiler warning.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11426 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test')
| -rw-r--r-- | test/fonts.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fonts.cxx b/test/fonts.cxx index 32050a0ae..ac19abce9 100644 --- a/test/fonts.cxx +++ b/test/fonts.cxx @@ -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(); } |
