diff --git a/block-cache/block_cache.cc b/block-cache/block_cache.cc index 6ecce1f..3699d4b 100644 --- a/block-cache/block_cache.cc +++ b/block-cache/block_cache.cc @@ -213,7 +213,7 @@ block_cache::wait_io() if (e.res == block_size_ << SECTOR_SHIFT) complete_io(*b, 0); - else if (e.res < 0) + else if (static_cast(e.res) < 0) complete_io(*b, e.res); else {