From 1c8c16b9b121d4338f124cb59981e7a3328c4190 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Thu, 15 Oct 2020 11:57:18 -0700 Subject: [PATCH] Use quoted include. --- benchmark.py | 2 +- upb/json_decode.c | 2 +- upbc/main.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/benchmark.py b/benchmark.py index 70a3cce118..55b682bc93 100755 --- a/benchmark.py +++ b/benchmark.py @@ -53,7 +53,7 @@ def Benchmark(outbase, bench_cpu=True, runs=12): baseline = "master" -bench_cpu = True +bench_cpu = False if len(sys.argv) > 1: baseline = sys.argv[1] diff --git a/upb/json_decode.c b/upb/json_decode.c index 15d305bb31..b02419328a 100644 --- a/upb/json_decode.c +++ b/upb/json_decode.c @@ -909,7 +909,7 @@ static void jsondec_field(jsondec *d, upb_msg *msg, const upb_msgdef *m) { return; } - if (upb_fielddef_containingoneof(f) && + if (upb_fielddef_realcontainingoneof(f) && upb_msg_whichoneof(msg, upb_fielddef_containingoneof(f))) { jsondec_err(d, "More than one field for this oneof."); } diff --git a/upbc/main.cc b/upbc/main.cc index a9682a9c1a..3a38937797 100644 --- a/upbc/main.cc +++ b/upbc/main.cc @@ -1,5 +1,5 @@ -#include +#include "google/protobuf/compiler/plugin.h" #include "upbc/generator.h"