about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-01-07T13·37+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-01-07T13·37+0100
commit9aac1861f7c25d34212235bfd86f71312904e29e (patch)
tree1dc751f6cee0d52eb42fbe58000eaeddf950b400 /src
parent94595f42eb829771ed5f757cb71d8830f10a4ef3 (diff)
Fix some signedness warnings
Diffstat (limited to 'src')
-rw-r--r--src/libexpr/primops.cc2
-rw-r--r--src/libstore/build.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index 5a1f47b55e0d..87ee4f68a999 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -1374,7 +1374,7 @@ static void prim_genList(EvalState & state, const Pos & pos, Value * * args, Val
 
     state.mkList(v, len);
 
-    for (unsigned int n = 0; n < len; ++n) {
+    for (unsigned int n = 0; n < (unsigned int) len; ++n) {
         Value * arg = state.allocValue();
         mkInt(*arg, n);
         mkApp(*(v.listElems()[n] = state.allocValue()), *args[0], *arg);
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 54f905798ee2..a124b2b14764 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -3731,7 +3731,7 @@ void Worker::waitForInput()
         }
     }
 
-    if (!waitingForAWhile.empty() && lastWokenUp + settings.pollInterval <= after) {
+    if (!waitingForAWhile.empty() && lastWokenUp + (time_t) settings.pollInterval <= after) {
         lastWokenUp = after;
         for (auto & i : waitingForAWhile) {
             GoalPtr goal = i.lock();