diff options
author | Diego Martinez <kaeza@users.sf.net> | 2015-07-08 16:18:11 -0300 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2015-07-09 01:52:28 +0200 |
commit | 13e100e1d8c5c47848645e2ef98f21e2c09297db (patch) | |
tree | ab1827d8deaf45cf2a356307f6672e149c30dab6 | |
parent | b51738177e2dae60153a825e200ea9cdeb1cec99 (diff) | |
download | minetest-13e100e1d8c5c47848645e2ef98f21e2c09297db.tar.gz minetest-13e100e1d8c5c47848645e2ef98f21e2c09297db.tar.bz2 minetest-13e100e1d8c5c47848645e2ef98f21e2c09297db.zip |
Windows: Fix some warnings.
-rw-r--r-- | src/filesys.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filesys.cpp b/src/filesys.cpp index 9aeecf427..4cefdb807 100644 --- a/src/filesys.cpp +++ b/src/filesys.cpp @@ -142,7 +142,7 @@ bool RecursiveDelete(const std::string &path) infostream<<"RecursiveDelete: Deleting content of directory " <<path<<std::endl; std::vector<DirListNode> content = GetDirListing(path); - for(int i=0; i<content.size(); i++){ + for(size_t i=0; i<content.size(); i++){ const DirListNode &n = content[i]; std::string fullpath = path + DIR_DELIM + n.name; bool did = RecursiveDelete(fullpath); @@ -183,7 +183,7 @@ bool DeleteSingleFileOrEmptyDirectory(const std::string &path) std::string TempPath() { - DWORD bufsize = GetTempPath(0, ""); + DWORD bufsize = GetTempPath(0, NULL); if(bufsize == 0){ errorstream<<"GetTempPath failed, error = "<<GetLastError()<<std::endl; return ""; |