diff options
Diffstat (limited to 'tests')
-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); |