summaryrefslogtreecommitdiffstats
path: root/src/graph.h
diff options
context:
space:
mode:
authorDaniel Weber <daniel.weber.dev@gmail.com>2016-09-01 20:02:18 (GMT)
committerDaniel Weber <daniel.weber.dev@gmail.com>2016-09-01 20:02:18 (GMT)
commit1cc730ddc27df52d757be1c2e7aa96193f8ca9df (patch)
tree5c814701e730c28649056261902f5b5e383851a4 /src/graph.h
parentc4b09e1e7e1d531a818601be33e0ec8ee18c3cde (diff)
downloadNinja-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.h')
-rw-r--r--src/graph.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/graph.h b/src/graph.h
index add8d3d..ec24293 100644
--- a/src/graph.h
+++ b/src/graph.h
@@ -21,6 +21,7 @@ using namespace std;
#include "eval_env.h"
#include "timestamp.h"
+#include "util.h"
struct BuildLog;
struct DiskInterface;
@@ -33,7 +34,7 @@ struct State;
/// Information about a node in the dependency graph: the file, whether
/// it's dirty, mtime, etc.
struct Node {
- Node(const string& path, unsigned int slash_bits)
+ Node(const string& path, uint64_t slash_bits)
: path_(path),
slash_bits_(slash_bits),
mtime_(-1),
@@ -76,8 +77,8 @@ struct Node {
return PathDecanonicalized(path_, slash_bits_);
}
static string PathDecanonicalized(const string& path,
- unsigned int slash_bits);
- unsigned int slash_bits() const { return slash_bits_; }
+ uint64_t slash_bits);
+ uint64_t slash_bits() const { return slash_bits_; }
TimeStamp mtime() const { return mtime_; }
@@ -101,7 +102,7 @@ private:
/// Set bits starting from lowest for backslashes that were normalized to
/// forward slashes by CanonicalizePath. See |PathDecanonicalized|.
- unsigned int slash_bits_;
+ uint64_t slash_bits_;
/// Possible values of mtime_:
/// -1: file hasn't been examined