Workaround for ICE on gcc5

This commit is contained in:
James Rowe 2017-12-13 12:04:17 -07:00
parent 9a6a452857
commit ac4c589ab5

View file

@ -872,7 +872,7 @@ Surface FindMatch(const SurfaceCache& surface_cache, const SurfaceParams& params
for (auto& pair : RangeFromInterval(surface_cache, params.GetInterval())) {
for (auto& surface : pair.second) {
const bool res_scale_matched = match_scale_type == ScaleMatch::Exact
bool res_scale_matched = match_scale_type == ScaleMatch::Exact
? (params.res_scale == surface->res_scale)
: (params.res_scale <= surface->res_scale);
// validity will be checked in GetCopyableInterval