2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-09-28 21:19:06 +00:00
qpdf/libqpdf/QPDF_Integer.cc
Jay Berkenbilt 781c313058 Change QPDF_Integer from int to long long
This makes it possible to store offsets that are larger than 2 GB in
the trailer dictionary.
2012-06-24 15:20:01 -04:00

25 lines
306 B
C++

#include <qpdf/QPDF_Integer.hh>
#include <qpdf/QUtil.hh>
QPDF_Integer::QPDF_Integer(long long val) :
val(val)
{
}
QPDF_Integer::~QPDF_Integer()
{
}
std::string
QPDF_Integer::unparse()
{
return QUtil::int_to_string(this->val);
}
long long
QPDF_Integer::getVal() const
{
return this->val;
}