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
6f0f382d
Commit
6f0f382d
authored
Oct 15, 2019
by
Christian Maurer
Committed by
Adam Cozzette
Oct 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
c++ remove conversion warning in MapEntryFuncs::ByteSizeLong
parent
b467aa16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
map_entry_lite.h
src/google/protobuf/map_entry_lite.h
+1
-1
No files found.
src/google/protobuf/map_entry_lite.h
View file @
6f0f382d
...
@@ -128,7 +128,7 @@ struct MapEntryFuncs {
...
@@ -128,7 +128,7 @@ struct MapEntryFuncs {
// Tags for key and value will both be one byte (field numbers 1 and 2).
// Tags for key and value will both be one byte (field numbers 1 and 2).
size_t
inner_length
=
size_t
inner_length
=
2
+
KeyTypeHandler
::
ByteSize
(
key
)
+
ValueTypeHandler
::
ByteSize
(
value
);
2
+
KeyTypeHandler
::
ByteSize
(
key
)
+
ValueTypeHandler
::
ByteSize
(
value
);
return
inner_length
+
io
::
CodedOutputStream
::
VarintSize32
(
inner_length
);
return
inner_length
+
io
::
CodedOutputStream
::
VarintSize32
(
static_cast
<
uint32
>
(
inner_length
)
);
}
}
static
int
GetCachedSize
(
const
Key
&
key
,
const
Value
&
value
)
{
static
int
GetCachedSize
(
const
Key
&
key
,
const
Value
&
value
)
{
...
...
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