summaryrefslogtreecommitdiffstats
path: root/src/state.cc
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/state.cc
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/state.cc')
-rw-r--r--src/state.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/state.cc b/src/state.cc
index d539e7b..6079229 100644
--- a/src/state.cc
+++ b/src/state.cc
@@ -100,7 +100,7 @@ Edge* State::AddEdge(const Rule* rule) {
return edge;
}
-Node* State::GetNode(StringPiece path, unsigned int slash_bits) {
+Node* State::GetNode(StringPiece path, uint64_t slash_bits) {
Node* node = LookupNode(path);
if (node)
return node;
@@ -134,13 +134,13 @@ Node* State::SpellcheckNode(const string& path) {
return result;
}
-void State::AddIn(Edge* edge, StringPiece path, unsigned int slash_bits) {
+void State::AddIn(Edge* edge, StringPiece path, uint64_t slash_bits) {
Node* node = GetNode(path, slash_bits);
edge->inputs_.push_back(node);
node->AddOutEdge(edge);
}
-bool State::AddOut(Edge* edge, StringPiece path, unsigned int slash_bits) {
+bool State::AddOut(Edge* edge, StringPiece path, uint64_t slash_bits) {
Node* node = GetNode(path, slash_bits);
if (node->in_edge())
return false;