Fix narrowing conversion from int64_t to bool

http://hydra.nixos.org/build/36613774
This commit is contained in:
Eelco Dolstra 2016-06-03 13:20:46 +02:00
parent f8a8b4d8f8
commit 75361b6dce

View file

@ -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));