aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/map.h
diff options
context:
space:
mode:
authorGravatar Feng Xiao <xfxyjwf@gmail.com>2016-07-22 21:41:17 +0000
committerGravatar Feng Xiao <xfxyjwf@gmail.com>2016-07-22 21:41:17 +0000
commit9009662b719f98dee6c352d05a7630612313c58e (patch)
tree169f5b136c7d348d774001f320e616204a1ac987 /src/google/protobuf/map.h
parent16adea3ddc4e775aac230c4326aeb686c26620dc (diff)
Fix sign-comparison warnings in public header files.
Diffstat (limited to 'src/google/protobuf/map.h')
-rw-r--r--src/google/protobuf/map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/map.h b/src/google/protobuf/map.h
index 42bcfd94..1b9aa703 100644
--- a/src/google/protobuf/map.h
+++ b/src/google/protobuf/map.h
@@ -1250,7 +1250,7 @@ class Map {
// Return whether table_[b] is a linked list that seems awfully long.
// Requires table_[b] to point to a non-empty linked list.
bool TableEntryIsTooLong(size_type b) {
- const int kMaxLength = 8;
+ const size_type kMaxLength = 8;
size_type count = 0;
Node* node = static_cast<Node*>(table_[b]);
do {