diff options
author | Daniel Weber <daniel.weber.dev@gmail.com> | 2016-09-01 20:02:18 (GMT) |
---|---|---|
committer | Daniel Weber <daniel.weber.dev@gmail.com> | 2016-09-01 20:02:18 (GMT) |
commit | 1cc730ddc27df52d757be1c2e7aa96193f8ca9df (patch) | |
tree | 5c814701e730c28649056261902f5b5e383851a4 /src/graph.cc | |
parent | c4b09e1e7e1d531a818601be33e0ec8ee18c3cde (diff) | |
download | Ninja-1cc730ddc27df52d757be1c2e7aa96193f8ca9df.zip Ninja-1cc730ddc27df52d757be1c2e7aa96193f8ca9df.tar.gz Ninja-1cc730ddc27df52d757be1c2e7aa96193f8ca9df.tar.bz2 |
Use uint64_t for slash_bits consistently
The VS compiler complained about possible loss of data (and it was right!)
Diffstat (limited to 'src/graph.cc')
-rw-r--r-- | src/graph.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graph.cc b/src/graph.cc index a5bac1c..e7f63fe 100644 --- a/src/graph.cc +++ b/src/graph.cc @@ -348,10 +348,10 @@ bool Edge::use_console() const { } // static -string Node::PathDecanonicalized(const string& path, unsigned int slash_bits) { +string Node::PathDecanonicalized(const string& path, uint64_t slash_bits) { string result = path; #ifdef _WIN32 - unsigned int mask = 1; + uint64_t mask = 1; for (char* c = &result[0]; (c = strchr(c, '/')) != NULL;) { if (slash_bits & mask) *c = '\\'; |