Fix vc++ compile error in write_legacy_sideband (#1652)

This commit is contained in:
cryptocode 2019-01-27 22:51:14 +01:00 committed by GitHub
commit 72bfc97a0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1154,7 +1154,7 @@ void write_legacy_sideband (nano::mdb_store & store_a, nano::transaction & trans
block_a.serialize (stream);
nano::write (stream, successor_a);
}
MDB_val val ({ vector.size (), vector.data () });
MDB_val val{ vector.size (), vector.data () };
auto hash (block_a.hash ());
auto status2 (mdb_put (store_a.env.tx (transaction_a), db_a, nano::mdb_val (hash), &val, 0));
ASSERT_EQ (0, status2);