From 296b679d6e3217cc112b7ed19b363b82356615ef Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 6 Aug 2017 08:42:01 -0400 Subject: Implement findFirst and findLast in InputSource Preparing to refactor some pattern searching code to use these instead of their own memchr loops. This should simplify the code that replaces PCRE. --- libqpdf/QPDF_linearization.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libqpdf/QPDF_linearization.cc') diff --git a/libqpdf/QPDF_linearization.cc b/libqpdf/QPDF_linearization.cc index 4e71f8d2..86a61081 100644 --- a/libqpdf/QPDF_linearization.cc +++ b/libqpdf/QPDF_linearization.cc @@ -118,7 +118,7 @@ QPDF::isLinearized() } else { - p = reinterpret_cast(memchr(p, '\0', tbuf_size - (p - buf))); + p = static_cast(memchr(p, '\0', tbuf_size - (p - buf))); assert(p != 0); while ((p - buf < tbuf_size) && (*p == 0)) { -- cgit v1.2.3-54-g00ecf