Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
bea97617
Commit
bea97617
authored
Sep 15, 2017
by
jiangrujie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+ Fix a bug that repeated bytes key=1 regard as Map
Change-Id: I89d07fed674640d28886c36b6bdee1dfacd34845
parent
31958a76
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
protobuf_map.cpp
src/json2pb/protobuf_map.cpp
+1
-0
No files found.
src/json2pb/protobuf_map.cpp
View file @
bea97617
...
...
@@ -18,6 +18,7 @@ bool IsProtobufMap(const FieldDescriptor* field) {
}
const
FieldDescriptor
*
key_desc
=
entry_desc
->
field
(
KEY_INDEX
);
if
(
NULL
==
key_desc
||
key_desc
->
is_repeated
()
||
key_desc
->
cpp_type
()
!=
FieldDescriptor
::
CPPTYPE_STRING
||
strcmp
(
KEY_NAME
,
key_desc
->
name
().
c_str
())
!=
0
)
{
return
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment