We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b5f589 commit 3afce0aCopy full SHA for 3afce0a
src/int128_struct_impl.h
@@ -19,7 +19,7 @@ static SECP256K1_INLINE uint64_t secp256k1_umul128(uint64_t a, uint64_t b, uint6
19
20
static SECP256K1_INLINE int64_t secp256k1_mul128(int64_t a, int64_t b, int64_t* hi) {
21
*hi = __mulh(a, b);
22
- return a * b;
+ return (uint64_t)a * (uint64_t)b;
23
}
24
# else
25
/* On x84_64 MSVC, use native _(u)mul128 for 64x64->128 multiplications. */
0 commit comments