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
633ef8bd
Commit
633ef8bd
authored
Sep 21, 2017
by
Zachary Anker
Committed by
GitHub
Sep 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update message.c
parent
87714836
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
message.c
ruby/ext/google/protobuf_c/message.c
+1
-2
No files found.
ruby/ext/google/protobuf_c/message.c
View file @
633ef8bd
...
...
@@ -260,7 +260,6 @@ int Message_initialize_kwarg(VALUE key, VALUE val, VALUE _self) {
Map_merge_into_self
(
map
,
val
);
}
else
if
(
upb_fielddef_label
(
f
)
==
UPB_LABEL_REPEATED
)
{
VALUE
ary
;
VALUE
entry
;
if
(
TYPE
(
val
)
!=
T_ARRAY
)
{
rb_raise
(
rb_eArgError
,
...
...
@@ -268,7 +267,7 @@ int Message_initialize_kwarg(VALUE key, VALUE val, VALUE _self) {
}
ary
=
layout_get
(
self
->
descriptor
->
layout
,
Message_data
(
self
),
f
);
for
(
int
i
=
0
;
i
<
RARRAY_LEN
(
val
);
i
++
)
{
entry
=
rb_ary_entry
(
val
,
i
);
VALUE
entry
=
rb_ary_entry
(
val
,
i
);
if
(
TYPE
(
entry
)
==
T_HASH
&&
upb_fielddef_issubmsg
(
f
))
{
entry
=
create_submsg_from_hash
(
f
,
entry
);
}
...
...
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