]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filename.cpp
Insure suitable choices of path/drive separator on OS/2.
[wxWidgets.git] / src / common / filename.cpp
index 4b0278f2c355a0cfd132ecf55c87f0a0246f281f..e18d20c657201b86241e0d0979e6ed777452bc32 100644 (file)
@@ -723,7 +723,7 @@ wxFileName::CreateTempFileName(const wxString& prefix, wxFile *fileTemp)
     for ( size_t n = 0; n < numTries; n++ )
     {
         // 3 hex digits is enough for numTries == 1000 < 4096
-        pathTry = path + wxString::Format(_T("%.03x"), n);
+        pathTry = path + wxString::Format(_T("%.03x"), (unsigned int) n);
         if ( !wxFile::Exists(pathTry) )
         {
             break;