From 0ae9ac4aef71408ae8498e9370ed6c6105f31641 Mon Sep 17 00:00:00 2001 From: Ken Sharp Date: Wed, 9 Mar 2022 14:20:46 +0000 Subject: Fix compiler warning Use parentheses to make a test more explicitly obvious, hopefull this will satisfy gcc. --- pdf/pdf_sec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdf/pdf_sec.c b/pdf/pdf_sec.c index 42f4812ff..fa7131f81 100644 --- a/pdf/pdf_sec.c +++ b/pdf/pdf_sec.c @@ -1369,7 +1369,7 @@ int pdfi_initialise_Decryption(pdf_context *ctx) case 2: /* Set up the defaults if not already set */ /* Revision 2 is always 40-bit RC4 */ - if (KeyLen != 0 && KeyLen < 40 || KeyLen > 128 || KeyLen % 8 != 0) { + if (KeyLen != 0 && (KeyLen < 40 || KeyLen > 128 || KeyLen % 8 != 0)) { pdfi_set_error(ctx, 0, NULL, E_PDF_INVALID_DECRYPT_LEN, "pdfi_initialise_Decryption", NULL); return_error(gs_error_rangecheck); } -- cgit v1.2.1