Skip to content

Commit 13e100e

Browse files
kaezaest31
authored andcommittedJul 8, 2015
Windows: Fix some warnings.
1 parent b517381 commit 13e100e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/filesys.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ bool RecursiveDelete(const std::string &path)
142142
infostream<<"RecursiveDelete: Deleting content of directory "
143143
<<path<<std::endl;
144144
std::vector<DirListNode> content = GetDirListing(path);
145-
for(int i=0; i<content.size(); i++){
145+
for(size_t i=0; i<content.size(); i++){
146146
const DirListNode &n = content[i];
147147
std::string fullpath = path + DIR_DELIM + n.name;
148148
bool did = RecursiveDelete(fullpath);
@@ -183,7 +183,7 @@ bool DeleteSingleFileOrEmptyDirectory(const std::string &path)
183183

184184
std::string TempPath()
185185
{
186-
DWORD bufsize = GetTempPath(0, "");
186+
DWORD bufsize = GetTempPath(0, NULL);
187187
if(bufsize == 0){
188188
errorstream<<"GetTempPath failed, error = "<<GetLastError()<<std::endl;
189189
return "";

0 commit comments

Comments
 (0)
Please sign in to comment.