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
5a811ac6
Commit
5a811ac6
authored
Apr 27, 2015
by
Jie Luo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug for Field Presence
parent
856ced5d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
csharp_enum_field.cc
src/google/protobuf/compiler/csharp/csharp_enum_field.cc
+1
-1
csharp_primitive_field.cc
...google/protobuf/compiler/csharp/csharp_primitive_field.cc
+1
-1
No files found.
src/google/protobuf/compiler/csharp/csharp_enum_field.cc
View file @
5a811ac6
...
...
@@ -170,7 +170,7 @@ void EnumFieldGenerator::WriteHash(Writer* writer) {
}
else
{
writer
->
WriteLine
(
"if ($0$ != $1$) {"
,
property_name
(),
default_value
());
}
writer
->
WriteLine
(
" hash ^= $
1
$_.GetHashCode();"
,
name
());
writer
->
WriteLine
(
" hash ^= $
0
$_.GetHashCode();"
,
name
());
writer
->
WriteLine
(
"}"
);
}
void
EnumFieldGenerator
::
WriteEquals
(
Writer
*
writer
)
{
...
...
src/google/protobuf/compiler/csharp/csharp_primitive_field.cc
View file @
5a811ac6
...
...
@@ -161,7 +161,7 @@ void PrimitiveFieldGenerator::WriteHash(Writer* writer) {
}
else
{
writer
->
WriteLine
(
"if ($0$ != $1$) {"
,
property_name
(),
default_value
());
}
writer
->
WriteLine
(
" hash ^= $
1
$_.GetHashCode();"
,
name
());
writer
->
WriteLine
(
" hash ^= $
0
$_.GetHashCode();"
,
name
());
writer
->
WriteLine
(
"}"
);
}
void
PrimitiveFieldGenerator
::
WriteEquals
(
Writer
*
writer
)
{
...
...
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