General: Fix compilation for GCC

This commit is contained in:
Liam White 2022-04-13 21:02:55 +02:00 committed by Fernando Sahmkow
parent 602cb1e42f
commit 6df0663a57
16 changed files with 56 additions and 42 deletions

View file

@ -269,7 +269,7 @@ std::optional<ConstBufferAddr> TryGetConstBuffer(const IR::Inst* inst, Environme
}
std::optional lhs{Track(op1, env)};
if (lhs) {
lhs->shift_left = std::countr_zero(op2.U32());
lhs->shift_left = static_cast<u32>(std::countr_zero(op2.U32()));
}
return lhs;
break;