aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/lib/strings/str_util.h
diff options
context:
space:
mode:
authorGravatar Derek Murray <mrry@google.com>2016-09-21 05:55:41 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-09-21 07:01:05 -0700
commit08a6ebc3ad2194a61ef310a1da97e4402a5a00bb (patch)
tree7a9687a6a991e4375e47eac745c2ffe704e314ef /tensorflow/core/lib/strings/str_util.h
parent6333762303f2b858372ca779967d9fc1aa948b86 (diff)
Clean up warnings and IWYU in tensorflow/core/lib.
Change: 133826999
Diffstat (limited to 'tensorflow/core/lib/strings/str_util.h')
-rw-r--r--tensorflow/core/lib/strings/str_util.h2
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 288b599441..135d2f744e 100644
--- a/tensorflow/core/lib/strings/str_util.h
+++ b/tensorflow/core/lib/strings/str_util.h
@@ -162,7 +162,7 @@ inline std::vector<string> Split(StringPiece text, char delim) {
template <typename Predicate>
std::vector<string> Split(StringPiece text, char delim, Predicate p) {
std::vector<string> result;
- int token_start = 0;
+ size_t token_start = 0;
if (!text.empty()) {
for (size_t i = 0; i < text.size() + 1; i++) {
if ((i == text.size()) || (text[i] == delim)) {