aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/BitStream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/BitStream.cc')
-rw-r--r--libqpdf/BitStream.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libqpdf/BitStream.cc b/libqpdf/BitStream.cc
index c30f1f2d..72a50706 100644
--- a/libqpdf/BitStream.cc
+++ b/libqpdf/BitStream.cc
@@ -38,7 +38,8 @@ BitStream::skipToNextByte()
unsigned int bits_to_skip = bit_offset + 1;
if (bits_available < bits_to_skip)
{
- throw QEXC::Internal("overflow skipping to next byte in bitstream");
+ throw std::logic_error(
+ "INTERNAL ERROR: overflow skipping to next byte in bitstream");
}
bit_offset = 7;
++p;