mirror of
https://github.com/NixOS/nix
synced 2025-06-27 04:21:16 +02:00
* --max-freed: support values >= 4 GB.
This commit is contained in:
parent
d3aa183beb
commit
5af84139a8
4 changed files with 12 additions and 3 deletions
|
@ -58,12 +58,12 @@ static void setLogType(string lt)
|
|||
}
|
||||
|
||||
|
||||
unsigned int getIntArg(const string & opt,
|
||||
unsigned long long getIntArg(const string & opt,
|
||||
Strings::iterator & i, const Strings::iterator & end)
|
||||
{
|
||||
++i;
|
||||
if (i == end) throw UsageError(format("`%1%' requires an argument") % opt);
|
||||
int n;
|
||||
long long n;
|
||||
if (!string2Int(*i, n) || n < 0)
|
||||
throw UsageError(format("`%1%' requires a non-negative integer") % opt);
|
||||
return n;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue