From 75361b6dcef4c02cf3f9972c0d5a5a2726a1c438 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 3 Jun 2016 13:20:46 +0200 Subject: [PATCH] Fix narrowing conversion from int64_t to bool http://hydra.nixos.org/build/36613774 --- src/libstore/nar-info-disk-cache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));