diff options
author | Kenneth Heafield <github@kheafield.com> | 2013-01-23 00:23:35 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2013-01-23 00:23:35 +0400 |
commit | e2fc3062315ab5039abb27c594a88fb87adfd5c8 (patch) | |
tree | 6a15ae47c533ad2a3b46fa5c0a07928c1d1bf3ff /util/usage.cc | |
parent | fcf75fae18c618877a6c0e7d8ebcfcaf833f5e27 (diff) |
KenLM 58da33: compiler warnings, correctly handle bare K, kill HAVE_BOOST
Diffstat (limited to 'util/usage.cc')
-rw-r--r-- | util/usage.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/usage.cc b/util/usage.cc index 16a004bb4..b8e125d0d 100644 --- a/util/usage.cc +++ b/util/usage.cc @@ -81,7 +81,7 @@ template <class Num> uint64_t ParseNum(const std::string &arg) { UTIL_THROW_IF_ARG(stream >> throwaway, SizeParseError, (arg), "because there was more cruft " << throwaway << " after the number."); // Silly sort, using kilobytes as your default unit. - if (after.empty()) after == "K"; + if (after.empty()) after = "K"; if (after == "%") { uint64_t mem = GuessPhysicalMemory(); UTIL_THROW_IF_ARG(!mem, SizeParseError, (arg), "because % was specified but the physical memory size could not be determined."); |