Skip to content

Commit

Permalink
Merge pull request kpu#44 from mjpost/patch-2
Browse files Browse the repository at this point in the history
fixed typo in assignment
  • Loading branch information
kpu committed Sep 30, 2015
2 parents 745a59f + 215ad1c commit 08ad391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/usage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ template <class Num> uint64_t ParseNum(const std::string &arg) {
return static_cast<uint64_t>(static_cast<double>(value) * static_cast<double>(mem) / 100.0);
}

if (after == "k") after == "K";
if (after == "k") after = "K";
std::string units("bKMGTPEZY");
std::string::size_type index = units.find(after[0]);
UTIL_THROW_IF_ARG(index == std::string::npos, SizeParseError, (arg), "the allowed suffixes are " << units << "%.");
Expand Down

0 comments on commit 08ad391

Please sign in to comment.