summaryrefslogtreecommitdiff
path: root/pdf/pdf_sec.c
diff options
context:
space:
mode:
authorKen Sharp <ken.sharp@artifex.com>2022-03-09 14:20:46 +0000
committerKen Sharp <ken.sharp@artifex.com>2022-03-09 14:20:57 +0000
commit84ca9d556a0683808feae448b09a032c25b48265 (patch)
tree1f561a9c25b9cac7f428a6dd44315dfea3488770 /pdf/pdf_sec.c
parentbc238d9a4437860a8b87a43b110af9ee3cbedbcd (diff)
downloadghostpdl-84ca9d556a0683808feae448b09a032c25b48265.tar.gz
Fix compiler warning
Use parentheses to make a test more explicitly obvious, hopefull this will satisfy gcc.
Diffstat (limited to 'pdf/pdf_sec.c')
-rw-r--r--pdf/pdf_sec.c2
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);
}