summaryrefslogtreecommitdiff
path: root/mock-variables.c
diff options
context:
space:
mode:
authorSteve McIntyre <steve@einval.com>2022-06-23 00:16:56 +0100
committerSteve McIntyre <steve@einval.com>2022-06-23 00:16:56 +0100
commite6ace38abd705fbe24349152b7c90d473404e86e (patch)
tree50e7a2d6b00d650fcbee8b0c54f0a0eacefc6929 /mock-variables.c
parent8529e0f7f70f427a7202815061362eceba6bfc50 (diff)
downloadefi-boot-shim-upstream/15.6.tar.gz
efi-boot-shim-upstream/15.6.zip
New upstream version 15.6upstream/15.6
Diffstat (limited to 'mock-variables.c')
-rw-r--r--mock-variables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mock-variables.c b/mock-variables.c
index e9bce544..03044549 100644
--- a/mock-variables.c
+++ b/mock-variables.c
@@ -445,7 +445,7 @@ free_var(struct mock_variable *var)
static bool
mock_sv_attrs_match(UINT32 old, UINT32 new)
{
- UINT32 mask = ~EFI_VARIABLE_APPEND_WRITE;
+ UINT32 mask = ~((UINT32)EFI_VARIABLE_APPEND_WRITE);
return (old & mask) == (new & mask);
}