aboutsummaryrefslogtreecommitdiffhomepage
path: root/ruby
diff options
context:
space:
mode:
authorGravatar Zachary Anker <zach.anker@gmail.com>2017-09-20 12:45:42 -0700
committerGravatar GitHub <noreply@github.com>2017-09-20 12:45:42 -0700
commit8eae3fe6e90ee03821d89b03cbcecd622f479028 (patch)
tree35699e25c65e4045bb39026f65d4bbb85528b1bf /ruby
parent83264bd160326fe808c2d5bfbebe54e77f781152 (diff)
Update message.c
Diffstat (limited to 'ruby')
-rw-r--r--ruby/ext/google/protobuf_c/message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby/ext/google/protobuf_c/message.c b/ruby/ext/google/protobuf_c/message.c
index 82c730b5..9e8056e3 100644
--- a/ruby/ext/google/protobuf_c/message.c
+++ b/ruby/ext/google/protobuf_c/message.c
@@ -420,7 +420,7 @@ VALUE Message_to_h(VALUE _self) {
} else if (upb_fielddef_label(field) == UPB_LABEL_REPEATED) {
msg_value = RepeatedField_to_ary(msg_value);
- if (upb_fieldddef_type(field) == UPB_TYPE_MESSAGE) {
+ if (upb_fielddef_type(field) == UPB_TYPE_MESSAGE) {
for (int i = 0; i < RARRAY_LEN(msg_value); i++) {
VALUE elem = rb_ary_entry(msg_value, i);
rb_ary_store(msg_value, i, Message_to_h(elem));