mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Fix some random -Wconversion warnings
This commit is contained in:
parent
548ad391d9
commit
53ec5ac69f
16 changed files with 82 additions and 80 deletions
|
@ -47,8 +47,7 @@ static string makeNode(const string & id, const string & label,
|
|||
static string symbolicName(const string & path)
|
||||
{
|
||||
string p = baseNameOf(path);
|
||||
int dash = p.find('-');
|
||||
return string(p, dash + 1);
|
||||
return string(p, p.find('-') + 1);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue