Skip to content
Permalink
Browse files

Use direct instead of (deleted) copy-initialization

  • Loading branch information...
losynix committed Jan 3, 2019
1 parent e10b9d3 commit fda733f8d6be1cb05e7e56de4852599c020fd999
@@ -84,7 +84,7 @@ using namespace std;

std::vector<uint8_t> message;

static std::atomic<unsigned> FailedTrials = 0;
static std::atomic<unsigned> FailedTrials(0);

static void RandomTrial(
unsigned N,
@@ -222,7 +222,7 @@ void FillSeeds()

std::vector<uint8_t> message;

static std::atomic<unsigned> FailedTrials = 0;
static std::atomic<unsigned> FailedTrials(0);

static void RandomTrial(
unsigned N,
@@ -92,7 +92,7 @@ void FillSeeds()
memcpy(kPeelSeeds, wirehair::kPeelSeeds, sizeof(kPeelSeeds));
}

static std::atomic<unsigned> FailedTrials = 0;
static std::atomic<unsigned> FailedTrials(0);

uint8_t Message[64000];

@@ -94,7 +94,7 @@ static const int N_List[] = {

uint8_t Message[64000];

static std::atomic<unsigned> FailedTrials = 0;
static std::atomic<unsigned> FailedTrials(0);

static void RandomTrial(
unsigned N,
@@ -519,7 +519,7 @@ static bool Test_DecodeRandomLosses(
return true;
}

static atomic<bool> TestFailed = false;
static atomic<bool> TestFailed(false);

static void TestN(uint64_t seed, int N, unsigned blockBytes)
{

0 comments on commit fda733f

Please sign in to comment.
You can’t perform that action at this time.