Commit 8894d1fe authored by Feng Xiao's avatar Feng Xiao

Merge pull request #875 from tkarls/return_correct_bool_type_from_map

Changed return type from int32 to bool in function returning a bool
parents 3af70545 b7996f09
...@@ -155,7 +155,7 @@ class LIBPROTOBUF_EXPORT MapKey { ...@@ -155,7 +155,7 @@ class LIBPROTOBUF_EXPORT MapKey {
"MapKey::GetUInt32Value"); "MapKey::GetUInt32Value");
return val_.uint32_value_; return val_.uint32_value_;
} }
int32 GetBoolValue() const { bool GetBoolValue() const {
TYPE_CHECK(FieldDescriptor::CPPTYPE_BOOL, TYPE_CHECK(FieldDescriptor::CPPTYPE_BOOL,
"MapKey::GetBoolValue"); "MapKey::GetBoolValue");
return val_.bool_value_; return val_.bool_value_;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment