krb5: mask should be uint64_t, not size_t

size_t is not 64 bits on all platforms
This commit is contained in:
Luke Howard
2021-08-07 19:25:02 +10:00
parent 9d16808515
commit 65651c8106

View File

@@ -412,7 +412,7 @@ krb5_store_int(krb5_storage *sp,
return EINVAL;
if (BYTEORDER_IS_PACKED(sp)) {
size_t mask = ~0ULL >> (64 - len * 8);
uint64_t mask = ~0ULL >> (64 - len * 8);
value &= mask;
p += sizeof(v) - 1;
len = pack_int(p, value);