summaryrefslogtreecommitdiff
path: root/FL/Fl_Menu_Item.H
diff options
context:
space:
mode:
authorMatthiasWM <visualc.git@matthiasm.com>2025-10-31 19:15:38 +0100
committerMatthiasWM <visualc.git@matthiasm.com>2025-10-31 19:15:38 +0100
commit1ba957eb6096c1df1e6476cccea5dbd3ec3b189d (patch)
treee4984feeb107dbb34682595e2252361d455b15ac /FL/Fl_Menu_Item.H
parent7500b3c5400fa9be56586817dba273d6fe88c68b (diff)
Fix MSVC Level 4 warnings (#1126)
Diffstat (limited to 'FL/Fl_Menu_Item.H')
-rw-r--r--FL/Fl_Menu_Item.H4
1 files changed, 2 insertions, 2 deletions
diff --git a/FL/Fl_Menu_Item.H b/FL/Fl_Menu_Item.H
index 09b9e0206..6d086ea8b 100644
--- a/FL/Fl_Menu_Item.H
+++ b/FL/Fl_Menu_Item.H
@@ -217,7 +217,7 @@ struct FL_EXPORT Fl_Menu_Item {
\see const char* Fl_Menu_Item::label() const
*/
void label(Fl_Labeltype a, const char* b) {
- labeltype_ = a;
+ labeltype_ = (uchar)a;
text = b;
}
@@ -273,7 +273,7 @@ struct FL_EXPORT Fl_Menu_Item {
the label() pointer as another form of data such as a bitmap.
The value FL_NORMAL_LABEL prints the label as text.
*/
- void labeltype(Fl_Labeltype a) {labeltype_ = a;}
+ void labeltype(Fl_Labeltype a) {labeltype_ = (uchar)a;}
/**
Gets the menu item's label color.