aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/QIntC.hh
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-09-17 18:13:19 +0200
committerJay Berkenbilt <ejb@ql.org>2019-09-17 18:18:09 +0200
commit6d81f014764e3bb9452d3697b84093bed0668f02 (patch)
treeca158b5178015b746a1f2fafaec47090e2421be6 /include/qpdf/QIntC.hh
parent8c34d67b88c3b7bccd16a3d825dab3cc55f8a8f8 (diff)
downloadqpdf-6d81f014764e3bb9452d3697b84093bed0668f02.tar.zst
Don't assume char is signed in int conversion tests (fixes #361)
Diffstat (limited to 'include/qpdf/QIntC.hh')
-rw-r--r--include/qpdf/QIntC.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/qpdf/QIntC.hh b/include/qpdf/QIntC.hh
index 3383a91c..8a6b74c0 100644
--- a/include/qpdf/QIntC.hh
+++ b/include/qpdf/QIntC.hh
@@ -51,6 +51,13 @@ namespace QIntC // QIntC = qpdf Integer Conversion
};
template <>
+ class to_u<signed char>
+ {
+ public:
+ typedef unsigned char type;
+ };
+
+ template <>
class to_u<short>
{
public: