mirror of
https://github.com/systemd/systemd.git
synced 2025-01-26 14:04:03 +03:00
tpm2: move cast from lhs to rhs in uint16_t/int comparison
This commit is contained in:
parent
cc1a78d5c4
commit
3cd4145f34
@ -1537,7 +1537,7 @@ bool tpm2_pcr_value_valid(const Tpm2PCRValue *pcr_value) {
|
||||
if (r < 0)
|
||||
return false;
|
||||
|
||||
if ((int) pcr_value->value.size != r) {
|
||||
if (pcr_value->value.size != (size_t) r) {
|
||||
log_debug("PCR hash 0x%" PRIx16 " expected size %d does not match actual size %" PRIu16 ".",
|
||||
pcr_value->hash, r, pcr_value->value.size);
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user