diff options
author | John <jl@hunch.net> | 2014-11-27 18:57:32 +0300 |
---|---|---|
committer | John <jl@hunch.net> | 2014-11-27 18:57:32 +0300 |
commit | 9495df094f62c0fe04ecebccc8f647651e486680 (patch) | |
tree | db948d166e90897e42c1f3c986cb9a153d5f8e58 /vowpalwabbit/parse_args.cc | |
parent | 4071da7d23226d7ecb7a348383e432e22cd97d6b (diff) | |
parent | 98037476fa17dae19a56041175502fe2be798c59 (diff) |
Merge pull request #456 from martinpopel/issue450
vw -b 32 does not work
Diffstat (limited to 'vowpalwabbit/parse_args.cc')
-rw-r--r-- | vowpalwabbit/parse_args.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vowpalwabbit/parse_args.cc b/vowpalwabbit/parse_args.cc index bf8c6318..a856c057 100644 --- a/vowpalwabbit/parse_args.cc +++ b/vowpalwabbit/parse_args.cc @@ -395,9 +395,9 @@ void parse_feature_tweaks(vw& all, po::variables_map& vm) } all.default_bits = false; all.num_bits = new_bits; - if (all.num_bits > min(32, sizeof(size_t)*8 - 3)) + if (all.num_bits > min(31, sizeof(size_t)*8 - 3)) { - cout << "Only " << min(32, sizeof(size_t)*8 - 3) << " or fewer bits allowed. If this is a serious limit, speak up." << endl; + cout << "Only " << min(31, sizeof(size_t)*8 - 3) << " or fewer bits allowed. If this is a serious limit, speak up." << endl; throw exception(); } } |