krb5: mask should be uint64_t, not size_t
size_t is not 64 bits on all platforms
This commit is contained in:
@@ -412,7 +412,7 @@ krb5_store_int(krb5_storage *sp,
|
|||||||
return EINVAL;
|
return EINVAL;
|
||||||
|
|
||||||
if (BYTEORDER_IS_PACKED(sp)) {
|
if (BYTEORDER_IS_PACKED(sp)) {
|
||||||
size_t mask = ~0ULL >> (64 - len * 8);
|
uint64_t mask = ~0ULL >> (64 - len * 8);
|
||||||
value &= mask;
|
value &= mask;
|
||||||
p += sizeof(v) - 1;
|
p += sizeof(v) - 1;
|
||||||
len = pack_int(p, value);
|
len = pack_int(p, value);
|
||||||
|
Reference in New Issue
Block a user