From 56c6a5b12a391ea1cc3e3cedee5804f59a4b16ea Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Fri, 1 Oct 2010 02:45:57 +0000 Subject: [PATCH] Silence compiler errors about argument() conversion to Fl_Align git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7709 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/Fl_Widget_Type.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fluid/Fl_Widget_Type.cxx b/fluid/Fl_Widget_Type.cxx index 13d625713..c58b5b10d 100644 --- a/fluid/Fl_Widget_Type.cxx +++ b/fluid/Fl_Widget_Type.cxx @@ -1176,7 +1176,7 @@ void align_position_cb(Fl_Choice *i, void *v) { Fl_Menu_Item *mi = (Fl_Menu_Item*)i->menu(); Fl_Align b = current_widget->o->align() & FL_ALIGN_POSITION_MASK; for (;mi->text;mi++) { - if (mi->argument()==b) + if ((Fl_Align)(mi->argument())==b) i->value(mi); } } else { @@ -1205,7 +1205,7 @@ void align_text_image_cb(Fl_Choice *i, void *v) { Fl_Menu_Item *mi = (Fl_Menu_Item*)i->menu(); Fl_Align b = current_widget->o->align() & FL_ALIGN_IMAGE_MASK; for (;mi->text;mi++) { - if (mi->argument()==b) + if ((Fl_Align)(mi->argument())==b) i->value(mi); } } else {