diff options
author | Josh Haberman <jhaberman@gmail.com> | 2014-11-18 15:40:04 -0800 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2014-11-18 15:40:04 -0800 |
commit | 177212c82f62e86e67bca69d1dbcf9d39d9123c4 (patch) | |
tree | 37be526d392d64dfcae134d1bb5ec527e1db3625 /tests/bindings/googlepb | |
parent | 3d0c7c45da5b72a88bfb03dc5ce3384b7f01cef6 (diff) |
Fixed building of googlepbtests.
Diffstat (limited to 'tests/bindings/googlepb')
-rw-r--r-- | tests/bindings/googlepb/test_vs_proto2.cc | 6 |
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; |