Skip to content

Commit 724d05f

Browse files
Update src/int128_struct_impl.h
Co-authored-by: Tim Ruffing <[email protected]>
1 parent 67b0d9b commit 724d05f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/int128_struct_impl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ static SECP256K1_INLINE uint64_t secp256k1_i128_to_u64(const secp256k1_int128 *a
161161

162162
static SECP256K1_INLINE int64_t secp256k1_i128_to_i64(const secp256k1_int128 *a) {
163163
/* Verify that a represents a 64 bit signed value by checking that the high bits are a sign extension of the low bits. */
164-
VERIFY_CHECK(a->hi == -(uint64_t)(0x8000000000000000u == (0x8000000000000000u & a->lo)));
164+
VERIFY_CHECK(a->hi == -(a->lo >> 63));
165165
return (int64_t)secp256k1_i128_to_u64(a);
166166
}
167167

0 commit comments

Comments
 (0)