aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/value.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-05-02 13:56:34 +0200
committerEelco Dolstra <edolstra@gmail.com>2018-05-02 13:56:34 +0200
commit53ec5ac69f59ac435b18297a594933e83e236766 (patch)
treef50797b3f3338de1d471a9b6f3b3e377813f09c9 /src/libexpr/value.hh
parent548ad391d96d8922d0f8c35b5dd72bf4fb7e3ed1 (diff)
Fix some random -Wconversion warnings
Diffstat (limited to 'src/libexpr/value.hh')
-rw-r--r--src/libexpr/value.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/value.hh b/src/libexpr/value.hh
index 9df516f06..66b41a158 100644
--- a/src/libexpr/value.hh
+++ b/src/libexpr/value.hh
@@ -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;
}