diff options
author | Joshua Haberman <joshua@reverberate.org> | 2010-01-16 09:00:59 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2010-01-16 09:00:59 -0800 |
commit | 611afe9c6928ea814abd37c4b3cc2869a6ed5efd (patch) | |
tree | 9b57805cb619014a411d0504a57e2dd5d1e0c9de /tests/test_vs_proto2.cc | |
parent | d5566c6038845e505f7c16130b2368ef9bb3a373 (diff) |
Removed union tag from types.
Diffstat (limited to 'tests/test_vs_proto2.cc')
-rw-r--r-- | tests/test_vs_proto2.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_vs_proto2.cc b/tests/test_vs_proto2.cc index 736b78f..9083788 100644 --- a/tests/test_vs_proto2.cc +++ b/tests/test_vs_proto2.cc @@ -28,7 +28,7 @@ void compare_arrays(const google::protobuf::Reflection *r, upb_arrayptr arr = upb_msg_get(upb_msg, upb_f).arr; ASSERT(upb_array_len(arr) == (upb_arraylen_t)r->FieldSize(proto2_msg, proto2_f)); for(upb_arraylen_t i = 0; i < upb_array_len(arr); i++) { - union upb_value v = upb_array_get(arr, upb_f, i); + upb_value v = upb_array_get(arr, upb_f, i); switch(upb_f->type) { default: ASSERT(false); @@ -81,7 +81,7 @@ void compare_values(const google::protobuf::Reflection *r, const google::protobuf::FieldDescriptor *proto2_f, upb_msg *upb_msg, upb_fielddef *upb_f) { - union upb_value v = upb_msg_get(upb_msg, upb_f); + upb_value v = upb_msg_get(upb_msg, upb_f); switch(upb_f->type) { default: ASSERT(false); |