diff options
author | 2016-02-01 16:39:16 -0800 | |
---|---|---|
committer | 2016-02-02 08:35:00 -0800 | |
commit | a8d2f0983ecdea8ff2526c717d6a9b2f06f403d8 (patch) | |
tree | 485daa70344be4240e68f89c016231bfdab242d1 /tensorflow/core/lib/strings/str_util.h | |
parent | 5ff6d34a05b2eb49f7a79a4d0b78ada9a6842b6c (diff) |
Minor formatting fixes.
Change: 113582098
Diffstat (limited to 'tensorflow/core/lib/strings/str_util.h')
-rw-r--r-- | tensorflow/core/lib/strings/str_util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/lib/strings/str_util.h b/tensorflow/core/lib/strings/str_util.h index 84673fe3cf..9c5391d0bb 100644 --- a/tensorflow/core/lib/strings/str_util.h +++ b/tensorflow/core/lib/strings/str_util.h @@ -134,7 +134,7 @@ std::vector<string> Split(StringPiece text, char delim, Predicate p) { std::vector<string> result; int token_start = 0; if (!text.empty()) { - for (int i = 0; i < text.size() + 1; i++) { + for (size_t i = 0; i < text.size() + 1; i++) { if ((i == text.size()) || (text[i] == delim)) { StringPiece token(text.data() + token_start, i - token_start); if (p(token)) { |