summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-06-03 13:20:46 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-06-03 13:20:46 +0200
commit75361b6dcef4c02cf3f9972c0d5a5a2726a1c438 (patch)
tree26763fb649222eeca6fcb8e547b23bac473aa177 /src
parentf8a8b4d8f8a694d4eacca52d92b3538dfbdf9b95 (diff)
Fix narrowing conversion from int64_t to bool
http://hydra.nixos.org/build/36613774
Diffstat (limited to 'src')
-rw-r--r--src/libstore/nar-info-disk-cache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/nar-info-disk-cache.cc b/src/libstore/nar-info-disk-cache.cc
index 0751dda19..39510f38f 100644
--- a/src/libstore/nar-info-disk-cache.cc
+++ b/src/libstore/nar-info-disk-cache.cc
@@ -141,7 +141,7 @@ public:
auto queryCache(state->queryCache.use()(uri));
if (!queryCache.next()) return false;
state->caches.emplace(uri,
- Cache{(int) queryCache.getInt(0), queryCache.getStr(1), queryCache.getInt(2), (int) queryCache.getInt(3)});
+ Cache{(int) queryCache.getInt(0), queryCache.getStr(1), queryCache.getInt(2) != 0, (int) queryCache.getInt(3)});
}
auto & cache(getCache(*state, uri));