aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/JSON.hh
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-05-21 15:05:54 +0200
committerJay Berkenbilt <ejb@ql.org>2022-05-21 15:43:45 +0200
commitc56a9ca7f6484925627aa1da374a236949c07cb2 (patch)
tree9c40a6b0d6f8214b345a38b6a33e0debb8a4102c /include/qpdf/JSON.hh
parent47c093c48b7ac3eb97c33b8edfafdf89685cffc7 (diff)
downloadqpdf-c56a9ca7f6484925627aa1da374a236949c07cb2.tar.zst
JSON: Fix large file support
Diffstat (limited to 'include/qpdf/JSON.hh')
-rw-r--r--include/qpdf/JSON.hh13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/qpdf/JSON.hh b/include/qpdf/JSON.hh
index e6857ca6..64a593d0 100644
--- a/include/qpdf/JSON.hh
+++ b/include/qpdf/JSON.hh
@@ -37,6 +37,7 @@
#include <qpdf/DLL.h>
#include <qpdf/PointerHolder.hh>
+#include <qpdf/Types.h>
#include <functional>
#include <list>
@@ -299,13 +300,13 @@ class JSON
// non-inclusive end offsets of an object relative to its input
// string. Otherwise, both values are 0.
QPDF_DLL
- void setStart(size_t);
+ void setStart(qpdf_offset_t);
QPDF_DLL
- void setEnd(size_t);
+ void setEnd(qpdf_offset_t);
QPDF_DLL
- size_t getStart() const;
+ qpdf_offset_t getStart() const;
QPDF_DLL
- size_t getEnd() const;
+ qpdf_offset_t getEnd() const;
private:
static std::string encode_string(std::string const& utf8);
@@ -391,8 +392,8 @@ class JSON
std::shared_ptr<JSON_value> value;
// start and end are only populated for objects created by parse
- size_t start;
- size_t end;
+ qpdf_offset_t start;
+ qpdf_offset_t end;
};
std::shared_ptr<Members> m;