summaryrefslogtreecommitdiff
path: root/tests/bindings/googlepb/test_vs_proto2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bindings/googlepb/test_vs_proto2.cc')
-rw-r--r--tests/bindings/googlepb/test_vs_proto2.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/bindings/googlepb/test_vs_proto2.cc b/tests/bindings/googlepb/test_vs_proto2.cc
index 15a5388..6787deb 100644
--- a/tests/bindings/googlepb/test_vs_proto2.cc
+++ b/tests/bindings/googlepb/test_vs_proto2.cc
@@ -29,11 +29,11 @@
// Pull in string data from benchmarks/google_message{1,2}.dat
// (the .h files are generated with xxd).
-const char message1_data[] = {
+const unsigned char message1_data[] = {
#include "benchmarks/google_message1.h"
};
-const char message2_data[] = {
+const unsigned char message2_data[] = {
#include "benchmarks/google_message2.h"
};
@@ -124,7 +124,7 @@ int run_tests(int argc, char *argv[]) {
UPB_UNUSED(argc);
UPB_UNUSED(argv);
size_t len = sizeof(MESSAGE_DATA_IDENT);
- const char *str = MESSAGE_DATA_IDENT;
+ const char *str = (const char*)MESSAGE_DATA_IDENT;
MESSAGE_CIDENT msg1;
MESSAGE_CIDENT msg2;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback