Fixing semicolon error.

This commit is contained in:
clemahieu 2014-11-30 12:06:19 -06:00
commit 456f37f0e4
2 changed files with 20 additions and 1 deletions

View file

@ -50,6 +50,25 @@ TEST (block, send_serialize)
ASSERT_EQ (block1, block2);
}
TEST (block, change_serialize)
{
rai::change_block block1 (1, 2, 3, 4, 5);
std::vector <uint8_t> bytes;
{
rai::vectorstream stream1 (bytes);
block1.serialize (stream1);
}
auto data (bytes.data ());
auto size (bytes.size ());
ASSERT_NE (nullptr, data);
ASSERT_NE (0, size);
rai::bufferstream stream2 (data, size);
bool error;
rai::change_block block2 (error, stream2);
ASSERT_FALSE (error);
ASSERT_EQ (block1, block2);
}
TEST (block, send_serialize_json)
{
rai::send_block block1;

View file

@ -1310,7 +1310,7 @@ bool rai::change_block::deserialize (rai::stream & stream_a)
if (!result)
{
result = read (stream_a, signature);
if (!result);
if (!result)
{
result = read (stream_a, work);
}