summaryrefslogtreecommitdiffstats
path: root/src/ninja.cc
diff options
context:
space:
mode:
authorDaniel Weber <daniel.weber.dev@gmail.com>2016-08-22 22:26:38 (GMT)
committerDaniel Weber <daniel.weber.dev@gmail.com>2016-08-22 22:26:38 (GMT)
commitc4b09e1e7e1d531a818601be33e0ec8ee18c3cde (patch)
tree53765aa88182d29c3156fd2bea822e660e814127 /src/ninja.cc
parent94fc14314501a78b1742e910f7c920188b2753da (diff)
downloadNinja-c4b09e1e7e1d531a818601be33e0ec8ee18c3cde.zip
Ninja-c4b09e1e7e1d531a818601be33e0ec8ee18c3cde.tar.gz
Ninja-c4b09e1e7e1d531a818601be33e0ec8ee18c3cde.tar.bz2
Allow more path components
- 60 instead of 30 path components - 64 instead of 32 backslashes in a path (windows only) Issue: 1161
Diffstat (limited to 'src/ninja.cc')
-rw-r--r--src/ninja.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ninja.cc b/src/ninja.cc
index 25eafe8..4fb04ad 100644
--- a/src/ninja.cc
+++ b/src/ninja.cc
@@ -233,7 +233,7 @@ int GuessParallelism() {
/// Returns true if the manifest was rebuilt.
bool NinjaMain::RebuildManifest(const char* input_file, string* err) {
string path = input_file;
- unsigned int slash_bits; // Unused because this path is only used for lookup.
+ uint64_t slash_bits; // Unused because this path is only used for lookup.
if (!CanonicalizePath(&path, &slash_bits, err))
return false;
Node* node = state_.LookupNode(path);
@@ -255,7 +255,7 @@ bool NinjaMain::RebuildManifest(const char* input_file, string* err) {
Node* NinjaMain::CollectTarget(const char* cpath, string* err) {
string path = cpath;
- unsigned int slash_bits;
+ uint64_t slash_bits;
if (!CanonicalizePath(&path, &slash_bits, err))
return NULL;