From 9e7d60da4421074d279a91cb6e4e67438add4645 Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Mon, 25 Jan 2010 18:44:58 +0000 Subject: fix min --- training/mr_optimize_reduce.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'training/mr_optimize_reduce.cc') 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"; -- cgit v1.2.3