aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/map.h
diff options
context:
space:
mode:
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 b5f34042..3ee4ea76 100644
--- a/src/google/protobuf/map.h
+++ b/src/google/protobuf/map.h
@@ -935,7 +935,7 @@ class Map {
const hasher& hash_function() const { return *this; }
static size_type max_size() {
- return static_cast<size_type>(1) << (sizeof(table_) >= 8 ? 60 : 28);
+ return static_cast<size_type>(1) << (sizeof(void**) >= 8 ? 60 : 28);
}
size_type size() const { return num_elements_; }
bool empty() const { return size() == 0; }