Windows: fixed a number of int size warnings mostly by casting them away

--HG--
branch : WINDOWSPORT
This commit is contained in:
Jean-Francois Dockes
2015-08-30 17:30:31 +02:00
parent 2858dc2a5e
commit 14c8e740d6
13 changed files with 21 additions and 42 deletions
-20
View File
@@ -26,7 +26,6 @@
#include <sys/param.h>
#include <pwd.h>
#include <sys/file.h>
#include <glob.h>
#endif
#include <math.h>
#include <errno.h>
@@ -420,25 +419,6 @@ bool makepath(const string& ipath)
return true;
}
vector<string> path_dirglob(const string &dir, const string pattern)
{
#ifdef _WIN32
return vector<string>();
#else
vector<string> res;
glob_t mglob;
string mypat=path_cat(dir, pattern);
if (glob(mypat.c_str(), 0, 0, &mglob)) {
return res;
}
for (int i = 0; i < int(mglob.gl_pathc); i++) {
res.push_back(mglob.gl_pathv[i]);
}
globfree(&mglob);
return res;
#endif
}
bool path_isdir(const string& path)
{
struct stat st;