summaryrefslogtreecommitdiff
path: root/examples/chart-simple.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2021-11-16 21:21:23 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2021-11-16 21:25:54 +0100
commit55f3df268c0f6e2fabc055bef51c195e51dd8716 (patch)
treeb76fce4b8d46a0234cafd9999027f16031d16a0e /examples/chart-simple.cxx
parent5810edaf84707563b452bd0e4b6120909b8ef3ea (diff)
Fix remaining VS compiler warnings in example programs
Diffstat (limited to 'examples/chart-simple.cxx')
-rw-r--r--examples/chart-simple.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/chart-simple.cxx b/examples/chart-simple.cxx
index 3f05b3631..6898ce005 100644
--- a/examples/chart-simple.cxx
+++ b/examples/chart-simple.cxx
@@ -31,7 +31,7 @@ Fl_Choice *G_choice = 0;
// Fl_Choice callback for changing chart type()
static void chart_type_cb(Fl_Widget *w, void*) {
const Fl_Menu_Item *item = G_choice->mvalue(); // item picked
- G_chart->type( item->argument() ); // apply change
+ G_chart->type( (uchar)item->argument() ); // apply change
G_chart->redraw();
// printf("Choice: '%s', argument=%ld\n", G_choice->text(), item->argument());
}