Skip to content

Commit aa05ed6

Browse files
committed
Add parenthesis to silence warnings when compiling OpenSSL
1 parent 244b153 commit aa05ed6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/c/openssl/ossl_pkey_dh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ ossl_dh_initialize_copy(VALUE self, VALUE other)
262262
BIGNUM *pub2 = BN_dup(pub);
263263
BIGNUM *priv2 = BN_dup(priv);
264264

265-
if (!pub2 || priv && !priv2) {
265+
if (!pub2 || (priv && !priv2)) { // Truffle: add parens to silence clang warnings
266266
BN_clear_free(pub2);
267267
BN_clear_free(priv2);
268268
ossl_raise(eDHError, "BN_dup");

0 commit comments

Comments
 (0)