diff --git a/include/wx/univ/notebook.h b/include/wx/univ/notebook.h index 4ef1065d3e..606e297b6f 100644 --- a/include/wx/univ/notebook.h +++ b/include/wx/univ/notebook.h @@ -68,7 +68,7 @@ public: // -------------------------------------- virtual int SetSelection(size_t nPage); - virtual int GetSelection() const { return m_sel; } + virtual int GetSelection() const { return (int) m_sel; } virtual bool SetPageText(size_t nPage, const wxString& strText); virtual wxString GetPageText(size_t nPage) const; diff --git a/include/wx/univ/radiobox.h b/include/wx/univ/radiobox.h index 67cf04bc1e..eee6327faf 100644 --- a/include/wx/univ/radiobox.h +++ b/include/wx/univ/radiobox.h @@ -88,7 +88,7 @@ public: virtual void SetSelection(int n); virtual int GetSelection() const; - virtual int GetCount() const { return m_buttons.GetCount(); } + virtual int GetCount() const { return (int) m_buttons.GetCount(); } virtual int GetColumnCount() const { return m_numCols; } virtual int GetRowCount() const { return m_numRows; }