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/state.h | |
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/state.h')
-rw-r--r-- | src/state.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/state.h b/src/state.h index b530207..54e9dc5 100644 --- a/src/state.h +++ b/src/state.h @@ -23,6 +23,7 @@ using namespace std; #include "eval_env.h" #include "hash_map.h" +#include "util.h" struct Edge; struct Node; @@ -93,12 +94,12 @@ struct State { Edge* AddEdge(const Rule* rule); - Node* GetNode(StringPiece path, unsigned int slash_bits); + Node* GetNode(StringPiece path, uint64_t slash_bits); Node* LookupNode(StringPiece path) const; Node* SpellcheckNode(const string& path); - void AddIn(Edge* edge, StringPiece path, unsigned int slash_bits); - bool AddOut(Edge* edge, StringPiece path, unsigned int slash_bits); + void AddIn(Edge* edge, StringPiece path, uint64_t slash_bits); + bool AddOut(Edge* edge, StringPiece path, uint64_t slash_bits); bool AddDefault(StringPiece path, string* error); /// Reset state. Keeps all nodes and edges, but restores them to the |