diff options
author | Chris Fallin <cfallin@google.com> | 2015-01-26 11:23:19 -0800 |
---|---|---|
committer | Chris Fallin <cfallin@google.com> | 2015-01-26 11:23:19 -0800 |
commit | 9de35e742167b1dd2941cefab6e99239207f8e2c (patch) | |
tree | 74af78fc36329fa2f4064221106f7dde38084c6e /ruby/ext/google/protobuf_c/defs.c | |
parent | e2debef5d8cd084946bd14fecabda5c328382114 (diff) | |
download | protobuf-9de35e742167b1dd2941cefab6e99239207f8e2c.tar.gz protobuf-9de35e742167b1dd2941cefab6e99239207f8e2c.tar.bz2 protobuf-9de35e742167b1dd2941cefab6e99239207f8e2c.zip |
Addressed code-review comments.
Diffstat (limited to 'ruby/ext/google/protobuf_c/defs.c')
-rw-r--r-- | ruby/ext/google/protobuf_c/defs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ruby/ext/google/protobuf_c/defs.c b/ruby/ext/google/protobuf_c/defs.c index 446a5586..b39c27f4 100644 --- a/ruby/ext/google/protobuf_c/defs.c +++ b/ruby/ext/google/protobuf_c/defs.c @@ -58,11 +58,11 @@ static upb_def* check_notfrozen(const upb_def* def) { } static upb_msgdef* check_msg_notfrozen(const upb_msgdef* def) { - return (upb_msgdef*)check_notfrozen((const upb_def*)def); + return upb_downcast_msgdef_mutable(check_notfrozen((const upb_def*)def)); } static upb_fielddef* check_field_notfrozen(const upb_fielddef* def) { - return (upb_fielddef*)check_notfrozen((const upb_def*)def); + return upb_downcast_fielddef_mutable(check_notfrozen((const upb_def*)def)); } static upb_oneofdef* check_oneof_notfrozen(const upb_oneofdef* def) { |