From 15967b0581673a4ed844e6f42439ee0d48245d23 Mon Sep 17 00:00:00 2001 From: Joshua Moerman Date: Wed, 25 Nov 2015 11:48:12 +0100 Subject: [PATCH] Fixes compilation issue (clang is too nice to me) --- lib/transfer_sequences.cpp | 2 +- src/main.cpp | 4 ++-- src/methods.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/transfer_sequences.cpp b/lib/transfer_sequences.cpp index 4cc17a2..63e01fd 100644 --- a/lib/transfer_sequences.cpp +++ b/lib/transfer_sequences.cpp @@ -21,7 +21,7 @@ static size_t clamp_to_size_t(double x, size_t min, size_t max) { transfer_sequences create_transfer_sequences(transfer_options const & opt, const mealy & machine, state s, uint_fast32_t random_seed) { mt19937 generator(random_seed); - uniform_int_distribution dist(opt.q_min, opt.q_max); + uniform_real_distribution dist(opt.q_min, opt.q_max); vector added(machine.graph_size, false); vector words(machine.graph_size); diff --git a/src/main.cpp b/src/main.cpp index e0408ae..e1238ee 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -19,7 +19,7 @@ using namespace std; static const char USAGE[] = -R"(Generate a test suite +R"(Generate a test suite. Use '=' as filename for stdin. Usage: main [options] (all|fixed|random) @@ -38,7 +38,7 @@ R"(Generate a test suite using time_logger = silent_timer; int main(int argc, char *argv[]) try { - const auto args = docopt::docopt(USAGE, {argv + 1, argv + argc}, true, "5 aug 11:00"); + const auto args = docopt::docopt(USAGE, {argv + 1, argv + argc}, true, "25 Nov 11:50"); const string filename = args.at("").asString(); const bool use_stdio = filename == "="; diff --git a/src/methods.cpp b/src/methods.cpp index 2c015a3..a26395a 100644 --- a/src/methods.cpp +++ b/src/methods.cpp @@ -94,8 +94,8 @@ int main(int argc, char * argv[]) { const auto suffixes = suffixes_fut.get(); for(state s = 0; s < suffixes.size(); ++s){ clog << "suffixes for " << s << endl; - for(auto s : suffixes[s].local_suffixes) { - for(auto x : s){ + for(auto s2 : suffixes[s].local_suffixes) { + for(auto x : s2){ clog << x; } clog << endl;