diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-06-03T11·20+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-06-03T11·20+0200 |
commit | 75361b6dcef4c02cf3f9972c0d5a5a2726a1c438 (patch) | |
tree | 26763fb649222eeca6fcb8e547b23bac473aa177 | |
parent | f8a8b4d8f8a694d4eacca52d92b3538dfbdf9b95 (diff) |
Fix narrowing conversion from int64_t to bool
http://hydra.nixos.org/build/36613774
-rw-r--r-- | src/libstore/nar-info-disk-cache.cc | 2 |
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 0751dda19286..39510f38f870 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)); |