Fix warning on integer cast

This commit is contained in:
baldurk
2022-08-04 18:54:58 +01:00
parent 94d1ce3917
commit 69378f5c73
@@ -79,7 +79,7 @@ void setScalars(ShaderVariable &var, uint8_t scalar0, uint8_t scalar1)
rdcpair<uint8_t, uint8_t> getScalars(const ShaderVariable &var)
{
return {(var.value.u64v[2] >> 8) & 0xff, var.value.u64v[2] & 0xff};
return {uint8_t((var.value.u64v[2] >> 8) & 0xff), uint8_t(var.value.u64v[2] & 0xff)};
}
// slot 3 contains the base ID of the structure, for registering pointer changes