mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 14:52:55 +00:00
libcmd/repl-interacter: INT_MAX -> numeric_limits
This commit is contained in:
parent
8a855296f5
commit
6bbd493d49
@ -73,7 +73,7 @@ static int listPossibleCallback(char * s, char *** avp)
|
||||
{
|
||||
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");
|
||||
|
||||
int ac = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user