From 887abe669f9a71c5fb530f0315e350ba22a150a7 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Mon, 12 Sep 2011 18:33:06 -0700 Subject: Added an example, constified some more methods. --- tests/test_vs_proto2.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_vs_proto2.cc') diff --git a/tests/test_vs_proto2.cc b/tests/test_vs_proto2.cc index 22aa2e2..222bcdb 100644 --- a/tests/test_vs_proto2.cc +++ b/tests/test_vs_proto2.cc @@ -30,8 +30,8 @@ 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_getseq(upb_msg, upb_f)); - void *iter = upb_seq_begin(arr, upb_f); + const void *arr = upb_value_getptr(upb_msg_getseq(upb_msg, upb_f)); + const void *iter = upb_seq_begin(arr, upb_f); for(int i = 0; i < r->FieldSize(proto2_msg, proto2_f); i++, iter = upb_seq_next(arr, iter, upb_f)) { -- cgit v1.2.3