diff options
author | John Langford <jl@humpty.(none)> | 2011-01-20 07:12:23 +0300 |
---|---|---|
committer | John Langford <jl@humpty.(none)> | 2011-01-20 07:12:23 +0300 |
commit | 3b77da5db3ec0f8398eecae04171f9aa0b19fe6e (patch) | |
tree | f413dfab54c1fd6fd94deb6ed50e4808483ab387 /parse_args.cc | |
parent | c07218992b7c6cafa4455c25834214f0cb9b9a89 (diff) |
made 29 bits correct and explicitly disabled greater.
Diffstat (limited to 'parse_args.cc')
-rw-r--r-- | parse_args.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/parse_args.cc b/parse_args.cc index 58202890..3e3b62be 100644 --- a/parse_args.cc +++ b/parse_args.cc @@ -204,6 +204,11 @@ po::variables_map parse_args(int argc, char *argv[], boost::program_options::opt { global.default_bits = false; global.num_bits = vm["bit_precision"].as< size_t>(); + if (global.num_bits > 29) + { + cout << "Only 29 or fewer bits allowed. If this is a serious limit, speak up." << endl; + exit(1); + } } if(vm.count("compressed")){ |