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
91ed6dcb
Commit
91ed6dcb
authored
Oct 15, 2019
by
Christian Maurer
Committed by
Adam Cozzette
Dec 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove win32/64 conversion warning in generated code
parent
c562c93a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
42 additions
and
36 deletions
+42
-36
api.pb.cc
src/google/protobuf/api.pb.cc
+4
-4
cpp_helpers.cc
src/google/protobuf/compiler/cpp/cpp_helpers.cc
+7
-7
plugin.pb.cc
src/google/protobuf/compiler/plugin.pb.cc
+3
-3
descriptor.pb.cc
src/google/protobuf/descriptor.pb.cc
+0
-0
duration.pb.cc
src/google/protobuf/duration.pb.cc
+2
-2
map_type_handler.h
src/google/protobuf/map_type_handler.h
+2
-2
parse_context.h
src/google/protobuf/parse_context.h
+7
-1
struct.pb.cc
src/google/protobuf/struct.pb.cc
+2
-2
timestamp.pb.cc
src/google/protobuf/timestamp.pb.cc
+2
-2
type.pb.cc
src/google/protobuf/type.pb.cc
+8
-8
wrappers.pb.cc
src/google/protobuf/wrappers.pb.cc
+5
-5
No files found.
src/google/protobuf/api.pb.cc
View file @
91ed6dcb
...
...
@@ -343,7 +343,7 @@ const char* Api::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::intern
// .google.protobuf.Syntax syntax = 7;
case
7
:
if
(
PROTOBUF_PREDICT_TRUE
(
static_cast
<::
PROTOBUF_NAMESPACE_ID
::
uint8
>
(
tag
)
==
56
))
{
::
PROTOBUF_NAMESPACE_ID
::
uint64
val
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
(
&
ptr
);
::
PROTOBUF_NAMESPACE_ID
::
uint64
val
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
64
(
&
ptr
);
CHK_
(
ptr
);
_internal_set_syntax
(
static_cast
<
PROTOBUF_NAMESPACE_ID
::
Syntax
>
(
val
));
}
else
goto
handle_unusual
;
...
...
@@ -697,7 +697,7 @@ const char* Method::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::int
// bool request_streaming = 3;
case
3
:
if
(
PROTOBUF_PREDICT_TRUE
(
static_cast
<::
PROTOBUF_NAMESPACE_ID
::
uint8
>
(
tag
)
==
24
))
{
request_streaming_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
(
&
ptr
);
request_streaming_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
64
(
&
ptr
);
CHK_
(
ptr
);
}
else
goto
handle_unusual
;
continue
;
...
...
@@ -713,7 +713,7 @@ const char* Method::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::int
// bool response_streaming = 5;
case
5
:
if
(
PROTOBUF_PREDICT_TRUE
(
static_cast
<::
PROTOBUF_NAMESPACE_ID
::
uint8
>
(
tag
)
==
40
))
{
response_streaming_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
(
&
ptr
);
response_streaming_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
64
(
&
ptr
);
CHK_
(
ptr
);
}
else
goto
handle_unusual
;
continue
;
...
...
@@ -732,7 +732,7 @@ const char* Method::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::int
// .google.protobuf.Syntax syntax = 7;
case
7
:
if
(
PROTOBUF_PREDICT_TRUE
(
static_cast
<::
PROTOBUF_NAMESPACE_ID
::
uint8
>
(
tag
)
==
56
))
{
::
PROTOBUF_NAMESPACE_ID
::
uint64
val
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
(
&
ptr
);
::
PROTOBUF_NAMESPACE_ID
::
uint64
val
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
64
(
&
ptr
);
CHK_
(
ptr
);
_internal_set_syntax
(
static_cast
<
PROTOBUF_NAMESPACE_ID
::
Syntax
>
(
val
));
}
else
goto
handle_unusual
;
...
...
src/google/protobuf/compiler/cpp/cpp_helpers.cc
View file @
91ed6dcb
...
...
@@ -1605,7 +1605,7 @@ class ParseLoopGenerator {
std
::
string
prefix
=
field
->
is_repeated
()
?
"add"
:
"set"
;
if
(
field
->
type
()
==
FieldDescriptor
::
TYPE_ENUM
)
{
format_
(
"$uint64$ val = $pi_ns$::ReadVarint(&ptr);
\n
"
"$uint64$ val = $pi_ns$::ReadVarint
64
(&ptr);
\n
"
"CHK_(ptr);
\n
"
);
if
(
!
HasPreservingUnknownEnumSemantics
(
field
))
{
format_
(
"if (PROTOBUF_PREDICT_TRUE($1$_IsValid(val))) {
\n
"
,
...
...
@@ -1624,27 +1624,27 @@ class ParseLoopGenerator {
field
->
number
());
}
}
else
{
int
size
=
field
->
type
()
==
FieldDescriptor
::
TYPE_SINT32
?
32
:
64
;
std
::
string
size
=
(
field
->
type
()
==
FieldDescriptor
::
TYPE_SINT32
||
field
->
type
()
==
FieldDescriptor
::
TYPE_UINT32
)
?
"32"
:
"64"
;
std
::
string
zigzag
;
if
((
field
->
type
()
==
FieldDescriptor
::
TYPE_SINT32
||
field
->
type
()
==
FieldDescriptor
::
TYPE_SINT64
))
{
zigzag
=
StrCat
(
"ZigZag"
,
size
)
;
zigzag
=
"ZigZag"
;
}
if
(
field
->
is_repeated
()
||
field
->
containing_oneof
())
{
std
::
string
prefix
=
field
->
is_repeated
()
?
"add"
:
"set"
;
format_
(
"_internal_$1$_$2$($pi_ns$::ReadVarint$3$(&ptr));
\n
"
"_internal_$1$_$2$($pi_ns$::ReadVarint$3$
$4$
(&ptr));
\n
"
"CHK_(ptr);
\n
"
,
prefix
,
FieldName
(
field
),
zigzag
);
prefix
,
FieldName
(
field
),
zigzag
,
size
);
}
else
{
if
(
HasFieldPresence
(
field
->
file
()))
{
format_
(
"_Internal::set_has_$1$(&$has_bits$);
\n
"
,
FieldName
(
field
));
}
format_
(
"$1$_ = $pi_ns$::ReadVarint$2$(&ptr);
\n
"
"$1$_ = $pi_ns$::ReadVarint$2$
$3$
(&ptr);
\n
"
"CHK_(ptr);
\n
"
,
FieldName
(
field
),
zigzag
);
FieldName
(
field
),
zigzag
,
size
);
}
}
break
;
...
...
src/google/protobuf/compiler/plugin.pb.cc
View file @
91ed6dcb
...
...
@@ -301,7 +301,7 @@ const char* Version::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in
case
1
:
if
(
PROTOBUF_PREDICT_TRUE
(
static_cast
<::
PROTOBUF_NAMESPACE_ID
::
uint8
>
(
tag
)
==
8
))
{
_Internal
::
set_has_major
(
&
has_bits
);
major_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
(
&
ptr
);
major_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
64
(
&
ptr
);
CHK_
(
ptr
);
}
else
goto
handle_unusual
;
continue
;
...
...
@@ -309,7 +309,7 @@ const char* Version::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in
case
2
:
if
(
PROTOBUF_PREDICT_TRUE
(
static_cast
<::
PROTOBUF_NAMESPACE_ID
::
uint8
>
(
tag
)
==
16
))
{
_Internal
::
set_has_minor
(
&
has_bits
);
minor_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
(
&
ptr
);
minor_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
64
(
&
ptr
);
CHK_
(
ptr
);
}
else
goto
handle_unusual
;
continue
;
...
...
@@ -317,7 +317,7 @@ const char* Version::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in
case
3
:
if
(
PROTOBUF_PREDICT_TRUE
(
static_cast
<::
PROTOBUF_NAMESPACE_ID
::
uint8
>
(
tag
)
==
24
))
{
_Internal
::
set_has_patch
(
&
has_bits
);
patch_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
(
&
ptr
);
patch_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
64
(
&
ptr
);
CHK_
(
ptr
);
}
else
goto
handle_unusual
;
continue
;
...
...
src/google/protobuf/descriptor.pb.cc
View file @
91ed6dcb
This diff is collapsed.
Click to expand it.
src/google/protobuf/duration.pb.cc
View file @
91ed6dcb
...
...
@@ -164,14 +164,14 @@ const char* Duration::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::i
// int64 seconds = 1;
case
1
:
if
(
PROTOBUF_PREDICT_TRUE
(
static_cast
<::
PROTOBUF_NAMESPACE_ID
::
uint8
>
(
tag
)
==
8
))
{
seconds_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
(
&
ptr
);
seconds_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
64
(
&
ptr
);
CHK_
(
ptr
);
}
else
goto
handle_unusual
;
continue
;
// int32 nanos = 2;
case
2
:
if
(
PROTOBUF_PREDICT_TRUE
(
static_cast
<::
PROTOBUF_NAMESPACE_ID
::
uint8
>
(
tag
)
==
16
))
{
nanos_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
(
&
ptr
);
nanos_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
64
(
&
ptr
);
CHK_
(
ptr
);
}
else
goto
handle_unusual
;
continue
;
...
...
src/google/protobuf/map_type_handler.h
View file @
91ed6dcb
...
...
@@ -467,11 +467,11 @@ inline const char* ReadSINT32(const char* ptr, int32* value) {
}
template
<
typename
E
>
inline
const
char
*
ReadENUM
(
const
char
*
ptr
,
E
*
value
)
{
*
value
=
static_cast
<
E
>
(
ReadVarint
(
&
ptr
));
*
value
=
static_cast
<
E
>
(
ReadVarint
64
(
&
ptr
));
return
ptr
;
}
inline
const
char
*
ReadBOOL
(
const
char
*
ptr
,
bool
*
value
)
{
*
value
=
static_cast
<
bool
>
(
ReadVarint
(
&
ptr
));
*
value
=
static_cast
<
bool
>
(
ReadVarint
64
(
&
ptr
));
return
ptr
;
}
...
...
src/google/protobuf/parse_context.h
View file @
91ed6dcb
...
...
@@ -579,12 +579,18 @@ inline uint32 ReadSize(const char** pp) {
// function composition. We rely on the compiler to inline this.
// Also in debug compiles having local scoped variables tend to generated
// stack frames that scale as O(num fields).
inline
uint64
ReadVarint
(
const
char
**
p
)
{
inline
uint64
ReadVarint
64
(
const
char
**
p
)
{
uint64
tmp
;
*
p
=
VarintParse
(
*
p
,
&
tmp
);
return
tmp
;
}
inline
uint32
ReadVarint32
(
const
char
**
p
)
{
uint64
tmp
;
*
p
=
VarintParse
(
*
p
,
&
tmp
);
return
static_cast
<
uint32
>
(
tmp
);
}
inline
int64
ReadVarintZigZag64
(
const
char
**
p
)
{
uint64
tmp
;
*
p
=
VarintParse
(
*
p
,
&
tmp
);
...
...
src/google/protobuf/struct.pb.cc
View file @
91ed6dcb
...
...
@@ -631,7 +631,7 @@ const char* Value::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte
// .google.protobuf.NullValue null_value = 1;
case
1
:
if
(
PROTOBUF_PREDICT_TRUE
(
static_cast
<::
PROTOBUF_NAMESPACE_ID
::
uint8
>
(
tag
)
==
8
))
{
::
PROTOBUF_NAMESPACE_ID
::
uint64
val
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
(
&
ptr
);
::
PROTOBUF_NAMESPACE_ID
::
uint64
val
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
64
(
&
ptr
);
CHK_
(
ptr
);
_internal_set_null_value
(
static_cast
<
PROTOBUF_NAMESPACE_ID
::
NullValue
>
(
val
));
}
else
goto
handle_unusual
;
...
...
@@ -655,7 +655,7 @@ const char* Value::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte
// bool bool_value = 4;
case
4
:
if
(
PROTOBUF_PREDICT_TRUE
(
static_cast
<::
PROTOBUF_NAMESPACE_ID
::
uint8
>
(
tag
)
==
32
))
{
_internal_set_bool_value
(
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
(
&
ptr
));
_internal_set_bool_value
(
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
64
(
&
ptr
));
CHK_
(
ptr
);
}
else
goto
handle_unusual
;
continue
;
...
...
src/google/protobuf/timestamp.pb.cc
View file @
91ed6dcb
...
...
@@ -164,14 +164,14 @@ const char* Timestamp::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::
// int64 seconds = 1;
case
1
:
if
(
PROTOBUF_PREDICT_TRUE
(
static_cast
<::
PROTOBUF_NAMESPACE_ID
::
uint8
>
(
tag
)
==
8
))
{
seconds_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
(
&
ptr
);
seconds_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
64
(
&
ptr
);
CHK_
(
ptr
);
}
else
goto
handle_unusual
;
continue
;
// int32 nanos = 2;
case
2
:
if
(
PROTOBUF_PREDICT_TRUE
(
static_cast
<::
PROTOBUF_NAMESPACE_ID
::
uint8
>
(
tag
)
==
16
))
{
nanos_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
(
&
ptr
);
nanos_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
64
(
&
ptr
);
CHK_
(
ptr
);
}
else
goto
handle_unusual
;
continue
;
...
...
src/google/protobuf/type.pb.cc
View file @
91ed6dcb
...
...
@@ -540,7 +540,7 @@ const char* Type::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter
// .google.protobuf.Syntax syntax = 6;
case
6
:
if
(
PROTOBUF_PREDICT_TRUE
(
static_cast
<::
PROTOBUF_NAMESPACE_ID
::
uint8
>
(
tag
)
==
48
))
{
::
PROTOBUF_NAMESPACE_ID
::
uint64
val
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
(
&
ptr
);
::
PROTOBUF_NAMESPACE_ID
::
uint64
val
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
64
(
&
ptr
);
CHK_
(
ptr
);
_internal_set_syntax
(
static_cast
<
PROTOBUF_NAMESPACE_ID
::
Syntax
>
(
val
));
}
else
goto
handle_unusual
;
...
...
@@ -879,7 +879,7 @@ const char* Field::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte
// .google.protobuf.Field.Kind kind = 1;
case
1
:
if
(
PROTOBUF_PREDICT_TRUE
(
static_cast
<::
PROTOBUF_NAMESPACE_ID
::
uint8
>
(
tag
)
==
8
))
{
::
PROTOBUF_NAMESPACE_ID
::
uint64
val
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
(
&
ptr
);
::
PROTOBUF_NAMESPACE_ID
::
uint64
val
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
64
(
&
ptr
);
CHK_
(
ptr
);
_internal_set_kind
(
static_cast
<
PROTOBUF_NAMESPACE_ID
::
Field_Kind
>
(
val
));
}
else
goto
handle_unusual
;
...
...
@@ -887,7 +887,7 @@ const char* Field::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte
// .google.protobuf.Field.Cardinality cardinality = 2;
case
2
:
if
(
PROTOBUF_PREDICT_TRUE
(
static_cast
<::
PROTOBUF_NAMESPACE_ID
::
uint8
>
(
tag
)
==
16
))
{
::
PROTOBUF_NAMESPACE_ID
::
uint64
val
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
(
&
ptr
);
::
PROTOBUF_NAMESPACE_ID
::
uint64
val
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
64
(
&
ptr
);
CHK_
(
ptr
);
_internal_set_cardinality
(
static_cast
<
PROTOBUF_NAMESPACE_ID
::
Field_Cardinality
>
(
val
));
}
else
goto
handle_unusual
;
...
...
@@ -895,7 +895,7 @@ const char* Field::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte
// int32 number = 3;
case
3
:
if
(
PROTOBUF_PREDICT_TRUE
(
static_cast
<::
PROTOBUF_NAMESPACE_ID
::
uint8
>
(
tag
)
==
24
))
{
number_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
(
&
ptr
);
number_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
64
(
&
ptr
);
CHK_
(
ptr
);
}
else
goto
handle_unusual
;
continue
;
...
...
@@ -920,14 +920,14 @@ const char* Field::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte
// int32 oneof_index = 7;
case
7
:
if
(
PROTOBUF_PREDICT_TRUE
(
static_cast
<::
PROTOBUF_NAMESPACE_ID
::
uint8
>
(
tag
)
==
56
))
{
oneof_index_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
(
&
ptr
);
oneof_index_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
64
(
&
ptr
);
CHK_
(
ptr
);
}
else
goto
handle_unusual
;
continue
;
// bool packed = 8;
case
8
:
if
(
PROTOBUF_PREDICT_TRUE
(
static_cast
<::
PROTOBUF_NAMESPACE_ID
::
uint8
>
(
tag
)
==
64
))
{
packed_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
(
&
ptr
);
packed_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
64
(
&
ptr
);
CHK_
(
ptr
);
}
else
goto
handle_unusual
;
continue
;
...
...
@@ -1422,7 +1422,7 @@ const char* Enum::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter
// .google.protobuf.Syntax syntax = 5;
case
5
:
if
(
PROTOBUF_PREDICT_TRUE
(
static_cast
<::
PROTOBUF_NAMESPACE_ID
::
uint8
>
(
tag
)
==
40
))
{
::
PROTOBUF_NAMESPACE_ID
::
uint64
val
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
(
&
ptr
);
::
PROTOBUF_NAMESPACE_ID
::
uint64
val
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
64
(
&
ptr
);
CHK_
(
ptr
);
_internal_set_syntax
(
static_cast
<
PROTOBUF_NAMESPACE_ID
::
Syntax
>
(
val
));
}
else
goto
handle_unusual
;
...
...
@@ -1720,7 +1720,7 @@ const char* EnumValue::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::
// int32 number = 2;
case
2
:
if
(
PROTOBUF_PREDICT_TRUE
(
static_cast
<::
PROTOBUF_NAMESPACE_ID
::
uint8
>
(
tag
)
==
16
))
{
number_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
(
&
ptr
);
number_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
64
(
&
ptr
);
CHK_
(
ptr
);
}
else
goto
handle_unusual
;
continue
;
...
...
src/google/protobuf/wrappers.pb.cc
View file @
91ed6dcb
...
...
@@ -777,7 +777,7 @@ const char* Int64Value::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID:
// int64 value = 1;
case
1
:
if
(
PROTOBUF_PREDICT_TRUE
(
static_cast
<::
PROTOBUF_NAMESPACE_ID
::
uint8
>
(
tag
)
==
8
))
{
value_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
(
&
ptr
);
value_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
64
(
&
ptr
);
CHK_
(
ptr
);
}
else
goto
handle_unusual
;
continue
;
...
...
@@ -978,7 +978,7 @@ const char* UInt64Value::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID
// uint64 value = 1;
case
1
:
if
(
PROTOBUF_PREDICT_TRUE
(
static_cast
<::
PROTOBUF_NAMESPACE_ID
::
uint8
>
(
tag
)
==
8
))
{
value_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
(
&
ptr
);
value_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
64
(
&
ptr
);
CHK_
(
ptr
);
}
else
goto
handle_unusual
;
continue
;
...
...
@@ -1179,7 +1179,7 @@ const char* Int32Value::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID:
// int32 value = 1;
case
1
:
if
(
PROTOBUF_PREDICT_TRUE
(
static_cast
<::
PROTOBUF_NAMESPACE_ID
::
uint8
>
(
tag
)
==
8
))
{
value_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
(
&
ptr
);
value_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
64
(
&
ptr
);
CHK_
(
ptr
);
}
else
goto
handle_unusual
;
continue
;
...
...
@@ -1380,7 +1380,7 @@ const char* UInt32Value::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID
// uint32 value = 1;
case
1
:
if
(
PROTOBUF_PREDICT_TRUE
(
static_cast
<::
PROTOBUF_NAMESPACE_ID
::
uint8
>
(
tag
)
==
8
))
{
value_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
(
&
ptr
);
value_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
32
(
&
ptr
);
CHK_
(
ptr
);
}
else
goto
handle_unusual
;
continue
;
...
...
@@ -1581,7 +1581,7 @@ const char* BoolValue::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::
// bool value = 1;
case
1
:
if
(
PROTOBUF_PREDICT_TRUE
(
static_cast
<::
PROTOBUF_NAMESPACE_ID
::
uint8
>
(
tag
)
==
8
))
{
value_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
(
&
ptr
);
value_
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ReadVarint
64
(
&
ptr
);
CHK_
(
ptr
);
}
else
goto
handle_unusual
;
continue
;
...
...
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