summaryrefslogtreecommitdiff
path: root/tests/bindings
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2014-11-18 15:40:04 -0800
committerJosh Haberman <jhaberman@gmail.com>2014-11-18 15:40:04 -0800
commit177212c82f62e86e67bca69d1dbcf9d39d9123c4 (patch)
tree37be526d392d64dfcae134d1bb5ec527e1db3625 /tests/bindings
parent3d0c7c45da5b72a88bfb03dc5ce3384b7f01cef6 (diff)
Fixed building of googlepbtests.
Diffstat (limited to 'tests/bindings')
-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