Skip to content

Commit 66c6555

Browse files
committed
Fix sign mismatch and cast to bool.
1 parent bbb4b4e commit 66c6555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/secp256k1.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ int secp256k1_ec_pubkey_serialize(const secp256k1_context* ctx, unsigned char *o
270270

271271
VERIFY_CHECK(ctx != NULL);
272272
ARG_CHECK(outputlen != NULL);
273-
ARG_CHECK(*outputlen >= ((flags & SECP256K1_FLAGS_BIT_COMPRESSION) ? 33 : 65));
273+
ARG_CHECK(*outputlen >= ((flags & SECP256K1_FLAGS_BIT_COMPRESSION) != 0 ? 33u : 65u));
274274
len = *outputlen;
275275
*outputlen = 0;
276276
ARG_CHECK(output != NULL);

0 commit comments

Comments
 (0)