mirror of
https://github.com/mbilker/vgpu_unlock-rs.git
synced 2026-01-17 11:57:00 +01:00
Merge pull request #19 from tonymanou/bool_coercion
Fix boolean value coercion
This commit is contained in:
@@ -617,7 +617,7 @@ fn apply_profile_override(
|
|||||||
source_field: $source_field:ident,
|
source_field: $source_field:ident,
|
||||||
target_field: $target_field:ident,
|
target_field: $target_field:ident,
|
||||||
) => {
|
) => {
|
||||||
let $value = cmp::max(cmp::min($value, 0), 1);
|
let $value = cmp::max(cmp::min($value, 1), 0);
|
||||||
|
|
||||||
patch_msg!($target_field, $value);
|
patch_msg!($target_field, $value);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user