mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
libcmd/repl-interacter: INT_MAX -> numeric_limits
This commit is contained in:
parent
8a855296f5
commit
6bbd493d49
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ static int listPossibleCallback(char * s, char *** avp)
|
||||||
{
|
{
|
||||||
auto possible = curRepl->completePrefix(s);
|
auto possible = curRepl->completePrefix(s);
|
||||||
|
|
||||||
if (possible.size() > (INT_MAX / sizeof(char *)))
|
if (possible.size() > (std::numeric_limits<int>::max() / sizeof(char *)))
|
||||||
throw Error("too many completions");
|
throw Error("too many completions");
|
||||||
|
|
||||||
int ac = 0;
|
int ac = 0;
|
||||||
|
|
Loading…
Reference in a new issue