diff options
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/parsetostruct.proto2_compiled.cc | 2 | ||||
-rw-r--r-- | benchmarks/parsetostruct.proto2_table.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks/parsetostruct.proto2_compiled.cc b/benchmarks/parsetostruct.proto2_compiled.cc index f5f02bf..5b7c18e 100644 --- a/benchmarks/parsetostruct.proto2_compiled.cc +++ b/benchmarks/parsetostruct.proto2_compiled.cc @@ -29,7 +29,7 @@ static void cleanup() static size_t run(int i) { - if(!msg[i%NUM_MESSAGES].ParseFromString(str)) { + if(!msg[i%NUM_MESSAGES].ParsePartialFromString(str)) { fprintf(stderr, "Error parsing with proto2.\n"); return 0; } diff --git a/benchmarks/parsetostruct.proto2_table.cc b/benchmarks/parsetostruct.proto2_table.cc index 49a5b16..83546ae 100644 --- a/benchmarks/parsetostruct.proto2_table.cc +++ b/benchmarks/parsetostruct.proto2_table.cc @@ -38,7 +38,7 @@ static void cleanup() static size_t run(int i) { - if(!msg[i%NUM_MESSAGES]->ParseFromString(str)) { + if(!msg[i%NUM_MESSAGES]->ParsePartialFromString(str)) { fprintf(stderr, "Error parsing with proto2.\n"); return 0; } |