diff --git a/include/wx/iconbndl.h b/include/wx/iconbndl.h index 24ccb6b56e..1f0747547d 100644 --- a/include/wx/iconbndl.h +++ b/include/wx/iconbndl.h @@ -87,7 +87,7 @@ public: #if WXWIN_COMPATIBILITY_2_8 wxDEPRECATED( void AddIcon(const wxString& file, long type) { - AddIcon(file, (long)type); + AddIcon(file, (wxBitmapType)type); } )