From 611afe9c6928ea814abd37c4b3cc2869a6ed5efd Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sat, 16 Jan 2010 09:00:59 -0800 Subject: Removed union tag from types. --- tests/test_vs_proto2.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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); -- cgit v1.2.3