]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed gcc compiler warning (size_t was assumed to equal an unsigned int).
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Thu, 20 Nov 2003 18:18:58 +0000 (18:18 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Thu, 20 Nov 2003 18:18:58 +0000 (18:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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;