Use a bool for ForceDefaults instead of an int
The actual function takes a bool.
While we are doing this, add a couple missing ForceDefaults.
Change-Id: I7fd41c048dae340ca4f339230ceb033349db0faf
diff --git a/aos/json_to_flatbuffer.cc b/aos/json_to_flatbuffer.cc
index 249a59e..95c95dd 100644
--- a/aos/json_to_flatbuffer.cc
+++ b/aos/json_to_flatbuffer.cc
@@ -777,7 +777,7 @@
const std::string_view data,
const flatbuffers::TypeTable *typetable) {
flatbuffers::FlatBufferBuilder fbb;
- fbb.ForceDefaults(1);
+ fbb.ForceDefaults(true);
const flatbuffers::Offset<flatbuffers::Table> result =
JsonToFlatbuffer(data, typetable, &fbb);