Skip to content

Commit e60da63

Browse files
author
Ne Spesha
committed
Fixed types for XCode 16.
1 parent 710451b commit e60da63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/secp256k1/scalar_4x64_impl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ SECP256K1_INLINE static void secp256k1_scalar_set_int(secp256k1_scalar *r, unsig
4040

4141
SECP256K1_INLINE static unsigned int secp256k1_scalar_get_bits(const secp256k1_scalar *a, unsigned int offset, unsigned int count) {
4242
VERIFY_CHECK((offset + count - 1) >> 6 == offset >> 6);
43-
return (uint)(a->d[offset >> 6] >> (offset & 0x3F)) & ((((uint64_t)1) << count) - 1);
43+
return (unsigned int)(a->d[offset >> 6] >> (offset & 0x3F)) & ((((uint64_t)1) << count) - 1);
4444
}
4545

4646
SECP256K1_INLINE static unsigned int secp256k1_scalar_get_bits_var(const secp256k1_scalar *a, unsigned int offset, unsigned int count) {
@@ -50,7 +50,7 @@ SECP256K1_INLINE static unsigned int secp256k1_scalar_get_bits_var(const secp256
5050
return secp256k1_scalar_get_bits(a, offset, count);
5151
} else {
5252
VERIFY_CHECK((offset >> 6) + 1 < 4);
53-
return (uint)((a->d[offset >> 6] >> (offset & 0x3F)) | (a->d[(offset >> 6) + 1] << (64 - (offset & 0x3F)))) & ((((uint64_t)1) << count) - 1);
53+
return (unsigned int)((a->d[offset >> 6] >> (offset & 0x3F)) | (a->d[(offset >> 6) + 1] << (64 - (offset & 0x3F)))) & ((((uint64_t)1) << count) - 1);
5454
}
5555
}
5656

0 commit comments

Comments
 (0)