2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 02:49:00 +00:00
git-svn-id: svn+q:///qpdf/trunk@608 71b93d88-0707-0410-a8cf-f5a4172ac649
This commit is contained in:
Jay Berkenbilt 2008-05-04 19:12:34 +00:00
parent 76bf91765e
commit e5f08a7126

View File

@ -235,7 +235,7 @@ QPDFWriter::setEncryptionParameters(
for (std::set<int>::iterator iter = bits_to_clear.begin();
iter != bits_to_clear.end(); ++iter)
{
P |= ((1 << (*iter)) - 1);
P |= (1 << ((*iter) - 1));
}
P = ~P;