mirror of
https://github.com/NixOS/nix
synced 2025-06-29 06:21:14 +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
|
@ -128,7 +128,7 @@ struct Value
|
|||
const char * path;
|
||||
Bindings * attrs;
|
||||
struct {
|
||||
unsigned int size;
|
||||
size_t size;
|
||||
Value * * elems;
|
||||
} bigList;
|
||||
Value * smallList[2];
|
||||
|
@ -166,7 +166,7 @@ struct Value
|
|||
return type == tList1 || type == tList2 ? smallList : bigList.elems;
|
||||
}
|
||||
|
||||
unsigned int listSize() const
|
||||
size_t listSize() const
|
||||
{
|
||||
return type == tList1 ? 1 : type == tList2 ? 2 : bigList.size;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue