summaryrefslogtreecommitdiffstats
path: root/src/string_piece.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/string_piece.h')
-rw-r--r--src/string_piece.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string_piece.h b/src/string_piece.h
index ad1153e..b1bf105 100644
--- a/src/string_piece.h
+++ b/src/string_piece.h
@@ -31,7 +31,7 @@ struct StringPiece {
StringPiece(const string& str) : str_(str.data()), len_(str.size()) {}
StringPiece(const char* str) : str_(str), len_(strlen(str)) {}
- StringPiece(const char* str, int len) : str_(str), len_(len) {}
+ StringPiece(const char* str, size_t len) : str_(str), len_(len) {}
bool operator==(const StringPiece& other) const {
return len_ == other.len_ && memcmp(str_, other.str_, len_) == 0;
@@ -47,7 +47,7 @@ struct StringPiece {
}
const char* str_;
- int len_;
+ size_t len_;
};
#endif // NINJA_STRINGPIECE_H_