diff options
author | Chris Dyer <redpony@gmail.com> | 2010-01-25 18:44:58 +0000 |
---|---|---|
committer | Chris Dyer <redpony@gmail.com> | 2010-01-25 18:44:58 +0000 |
commit | 9e7d60da4421074d279a91cb6e4e67438add4645 (patch) | |
tree | 03dcb3c5a8feaee754739aecb12abe01ea8acb3e /training/mr_optimize_reduce.cc | |
parent | 566e06ddc88ca9467beaea56c6a2c4462126f68b (diff) |
fix min
Diffstat (limited to 'training/mr_optimize_reduce.cc')
-rw-r--r-- | training/mr_optimize_reduce.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/training/mr_optimize_reduce.cc b/training/mr_optimize_reduce.cc index 56b73c30..42727ecb 100644 --- a/training/mr_optimize_reduce.cc +++ b/training/mr_optimize_reduce.cc @@ -149,7 +149,7 @@ int main(int argc, char** argv) { double obj; if (!B64::Decode(&obj, &g, &line[i], line.size() - i)) { cerr << "B64 decoder returned error, skipping gradient!\n"; - cerr << " START: " << line.substr(0,min(200ul, line.size())) << endl; + cerr << " START: " << line.substr(0,line.size() > 200 ? 200 : line.size()) << endl; if (line.size() > 200) cerr << " END: " << line.substr(line.size() - 200, 200) << endl; cout << "-1\tRESTART\n"; |