aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_encryption.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-06-21 12:32:09 +0200
committerJay Berkenbilt <ejb@ql.org>2019-06-21 19:17:21 +0200
commit63a643a3c750c2cb6e667d5bbfc443080140832c (patch)
tree3196a85226c3cf77b9fe03b2e020351d8b95b8fc /libqpdf/QPDF_encryption.cc
parentd71f05ca07eb5c7cfa4d6d23e5c1f2a800f52e8e (diff)
downloadqpdf-63a643a3c750c2cb6e667d5bbfc443080140832c.tar.zst
Remove implicit conversion from int/pointer to bool
This fixes cases of warning C4800 from msvc
Diffstat (limited to 'libqpdf/QPDF_encryption.cc')
-rw-r--r--libqpdf/QPDF_encryption.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/QPDF_encryption.cc b/libqpdf/QPDF_encryption.cc
index c02f1aac..d72d6fb7 100644
--- a/libqpdf/QPDF_encryption.cc
+++ b/libqpdf/QPDF_encryption.cc
@@ -1425,7 +1425,7 @@ static bool
is_bit_set(int P, int bit)
{
// Bits in P are numbered from 1 in the spec
- return (P & (1 << (bit - 1)));
+ return ((P & (1 << (bit - 1))) != 0);
}
bool