Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
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
protobuf
Commits
177108aa
Unverified
Commit
177108aa
authored
Feb 20, 2018
by
Feng Xiao
Committed by
GitHub
Feb 20, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4323 from dtapuska/master
Rename a shadowed variable.
parents
0475607f
af3813cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
map_entry_lite.h
src/google/protobuf/map_entry_lite.h
+2
-2
No files found.
src/google/protobuf/map_entry_lite.h
View file @
177108aa
...
...
@@ -354,9 +354,9 @@ class MapEntryImpl : public Base {
// We could use memcmp here, but we don't bother. The tag is one byte.
GOOGLE_COMPILE_ASSERT
(
kTagSize
==
1
,
tag_size_error
);
if
(
size
>
0
&&
*
reinterpret_cast
<
const
char
*>
(
data
)
==
kValueTag
)
{
typename
Map
::
size_type
size
=
map_
->
size
();
typename
Map
::
size_type
map_
size
=
map_
->
size
();
value_ptr_
=
&
(
*
map_
)[
key_
];
if
(
GOOGLE_PREDICT_TRUE
(
size
!=
map_
->
size
()))
{
if
(
GOOGLE_PREDICT_TRUE
(
map_
size
!=
map_
->
size
()))
{
// We created a new key-value pair. Fill in the value.
typedef
typename
MapIf
<
ValueTypeHandler
::
kIsEnum
,
int
*
,
Value
*>::
type
T
;
...
...
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