diff options
| author | MatthiasWM <visualc.git@matthiasm.com> | 2025-10-31 19:15:38 +0100 |
|---|---|---|
| committer | MatthiasWM <visualc.git@matthiasm.com> | 2025-10-31 19:15:38 +0100 |
| commit | 1ba957eb6096c1df1e6476cccea5dbd3ec3b189d (patch) | |
| tree | e4984feeb107dbb34682595e2252361d455b15ac /FL/Fl_Widget.H | |
| parent | 7500b3c5400fa9be56586817dba273d6fe88c68b (diff) | |
Fix MSVC Level 4 warnings (#1126)
Diffstat (limited to 'FL/Fl_Widget.H')
| -rw-r--r-- | FL/Fl_Widget.H | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/FL/Fl_Widget.H b/FL/Fl_Widget.H index 18209afac..8a62c128d 100644 --- a/FL/Fl_Widget.H +++ b/FL/Fl_Widget.H @@ -448,7 +448,7 @@ public: \param[in] new_box the new box type \see box(), Fl_Boxtype */ - void box(Fl_Boxtype new_box) {box_ = new_box;} + void box(Fl_Boxtype new_box) {box_ = (uchar)new_box;} /** Gets the background color of the widget. \return current background color @@ -527,7 +527,7 @@ public: /** Shortcut to set the label text and type in one call. \see label(const char *), labeltype(Fl_Labeltype) */ - void label(Fl_Labeltype a, const char* b) {label_.type = a; label_.value = b;} + void label(Fl_Labeltype a, const char* b) {label_.type = (uchar)a; label_.value = b;} /** Gets the label type. \return the current label type. @@ -543,7 +543,7 @@ public: \param[in] a new label type \see Fl_Labeltype */ - void labeltype(Fl_Labeltype a) {label_.type = a;} + void labeltype(Fl_Labeltype a) {label_.type = (uchar)a;} /** Gets the label color. The default color is FL_FOREGROUND_COLOR. |
