diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_vs_proto2.cc | 2 | ||||
-rw-r--r-- | tests/tests.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_vs_proto2.cc b/tests/test_vs_proto2.cc index 0444d40..b22c620 100644 --- a/tests/test_vs_proto2.cc +++ b/tests/test_vs_proto2.cc @@ -30,7 +30,7 @@ void compare_arrays(const google::protobuf::Reflection *r, { ASSERT(upb_msg_has(upb_msg, upb_f)); ASSERT(upb_isseq(upb_f)); - void *arr = upb_value_getptr(upb_msg_get(upb_msg, upb_f)); + void *arr = upb_value_getptr(upb_msg_getseq(upb_msg, upb_f)); void *iter = upb_seq_begin(arr, upb_f); for(int i = 0; i < r->FieldSize(proto2_msg, proto2_f); diff --git a/tests/tests.c b/tests/tests.c index 1f64718..fc8e11d 100644 --- a/tests/tests.c +++ b/tests/tests.c @@ -59,7 +59,7 @@ static void test_upb_symtab() { upb_msgdef *m = upb_downcast_msgdef(def); upb_msg_iter i = upb_msg_begin(m); upb_fielddef *f = upb_msg_iter_field(i); - ASSERT(upb_hasdef(f)); + ASSERT(upb_hassubdef(f)); upb_def *def2 = f->def; i = upb_msg_next(m, i); |