From f48439cfc6951364f0e2983c9d933b9af77730b2 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sun, 28 Jun 2015 19:27:25 +0200 Subject: [PATCH] Fix casting variable in wxFlagsProperty::GetLabel Cast GetLabel parameter to a proper type (unsigned int instead of int). --- include/wx/propgrid/props.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/propgrid/props.h b/include/wx/propgrid/props.h index 2a85c79b1b..ff9c46f533 100644 --- a/include/wx/propgrid/props.h +++ b/include/wx/propgrid/props.h @@ -618,7 +618,7 @@ public: // helpers size_t GetItemCount() const { return m_choices.GetCount(); } const wxString& GetLabel( size_t ind ) const - { return m_choices.GetLabel(static_cast(ind)); } + { return m_choices.GetLabel(static_cast(ind)); } protected: // Used to detect if choices have been changed