diff --git a/include/wx/filefn.h b/include/wx/filefn.h index 1b102609ef..813357debe 100644 --- a/include/wx/filefn.h +++ b/include/wx/filefn.h @@ -560,7 +560,7 @@ public: // wxFileConfig::Flush() for example wxUmaskChanger(int umaskNew) { - m_umaskOld = umaskNew == -1 ? -1 : umask((mode_t)umaskNew); + m_umaskOld = umaskNew == -1 ? -1 : (int)umask((mode_t)umaskNew); } ~wxUmaskChanger()