From 817297699ff2709825bb11484ebdc2ec83687a5b Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Fri, 13 Mar 2015 22:57:03 +0100 Subject: [PATCH] warning fix: use correct type for std::string::find reply --- src/Main/util.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main/util.cxx b/src/Main/util.cxx index b5ea49dc6..15f7158d5 100644 --- a/src/Main/util.cxx +++ b/src/Main/util.cxx @@ -171,7 +171,7 @@ static std::string fgNormalizePath (const std::string& path) std::string fgValidatePath (const std::string& path, bool write) { const string_list& allowed_paths(write ? write_allowed_paths : read_allowed_paths); - int star_pos; + size_t star_pos; // Normalize the path (prevents ../../.. trickery) std::string normed_path = fgNormalizePath(path);