aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/util/example_proto_fast_parsing.cc
diff options
context:
space:
mode:
authorGravatar Derek Murray <mrry@google.com>2016-09-14 10:33:33 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-09-14 11:46:06 -0700
commite0bd1353e3cd9ca7d40ebf99913368fc604d1296 (patch)
tree789db995cb7669ae9bc48b8fc7e379990fa7708a /tensorflow/core/util/example_proto_fast_parsing.cc
parentfdad2ffb51c12a69ccc7ec23cfb45c0c71fe071b (diff)
Remove uses of type `uint` since it is not defined on all platforms.
Switch to `uint32` or `int`, depending on context. Change: 133151643
Diffstat (limited to 'tensorflow/core/util/example_proto_fast_parsing.cc')
-rw-r--r--tensorflow/core/util/example_proto_fast_parsing.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/core/util/example_proto_fast_parsing.cc b/tensorflow/core/util/example_proto_fast_parsing.cc
index a8b91859ad..e037a00b98 100644
--- a/tensorflow/core/util/example_proto_fast_parsing.cc
+++ b/tensorflow/core/util/example_proto_fast_parsing.cc
@@ -55,9 +55,9 @@ uint8 PeekTag(protobuf::io::CodedInputStream* stream) {
return *static_cast<const uint8*>(ptr);
}
-constexpr uint8 kVarintTag(uint tag) { return (tag << 3) | 0; }
-constexpr uint8 kDelimitedTag(uint tag) { return (tag << 3) | 2; }
-constexpr uint8 kFixed32Tag(uint tag) { return (tag << 3) | 5; }
+constexpr uint8 kVarintTag(uint32 tag) { return (tag << 3) | 0; }
+constexpr uint8 kDelimitedTag(uint32 tag) { return (tag << 3) | 2; }
+constexpr uint8 kFixed32Tag(uint32 tag) { return (tag << 3) | 5; }
namespace parsed {