Fixes for Windows compiler errors.

Change-Id: I909ea6866089f36f9cb79d435bbecd29623fd8f7
This commit is contained in:
Wouter van Oortmerssen
2017-02-08 15:38:18 -08:00
parent f878024d0b
commit c57ab92e60
2 changed files with 10 additions and 8 deletions

View File

@@ -1372,9 +1372,9 @@ void FlexBuffersTest() {
slb += "Fred";
slb.IndirectFloat(4.0f);
});
std::vector<int> ints = { 1, 2, 3 };
int ints[] = { 1, 2, 3 };
slb.Add("bar", ints);
slb.FixedTypedVector("bar3", ints.data(), ints.size()); // Static size.
slb.FixedTypedVector("bar3", ints, sizeof(ints) / sizeof(int));
slb.Double("foo", 100);
slb.Map("mymap", [&]() {
slb.String("foo", "Fred"); // Testing key and string reuse.