diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2022-03-09 14:20:46 +0000 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2022-03-09 17:05:14 +0000 |
commit | 0ae9ac4aef71408ae8498e9370ed6c6105f31641 (patch) | |
tree | 5790ff3c4018125a558fd9384d2c4206f932a48a | |
parent | 7a422ec782f6b5f6ea1664672cc436f19abb2234 (diff) | |
download | ghostpdl-0ae9ac4aef71408ae8498e9370ed6c6105f31641.tar.gz |
Fix compiler warning
Use parentheses to make a test more explicitly obvious, hopefull this
will satisfy gcc.
-rw-r--r-- | pdf/pdf_sec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |