Index: tools/gn/filesystem_utils.cc |
diff --git a/tools/gn/filesystem_utils.cc b/tools/gn/filesystem_utils.cc |
index 56e472e7c8b88f1715129f5e7bbc059cb6056593..1e4194cab2c29a3594cdf14c0ac35310a0b429ea 100644 |
--- a/tools/gn/filesystem_utils.cc |
+++ b/tools/gn/filesystem_utils.cc |
@@ -132,7 +132,8 @@ std::vector<base::FilePath::StringType> GetPathComponents( |
// don't want the slash in there. This doesn't support input like "C:foo" |
// which means foo relative to the current directory of the C drive but |
// that's basically legacy DOS behavior we don't need to support. |
- if (result.size() >= 2 && result[1].size() == 1 && IsSlash(result[1][0])) |
+ if (result.size() >= 2 && result[1].size() == 1 && |
+ IsSlash(static_cast<char>(result[1][0]))) |
result.erase(result.begin() + 1); |
#endif |