summaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFWriter.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2012-06-20 16:56:36 +0200
committerJay Berkenbilt <ejb@ql.org>2012-06-20 21:18:14 +0200
commit24e2b2b76f1f0051f240c8371b2352c4cde85bf9 (patch)
tree966ee111aa7e1e22264abf7079e6dc0b23fe6129 /libqpdf/QPDFWriter.cc
parentb856379370809cca68cb97b737284ade2c44765c (diff)
downloadqpdf-24e2b2b76f1f0051f240c8371b2352c4cde85bf9.tar.zst
Fix gcc 4.7 warnings about C++11
Diffstat (limited to 'libqpdf/QPDFWriter.cc')
-rw-r--r--libqpdf/QPDFWriter.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/libqpdf/QPDFWriter.cc b/libqpdf/QPDFWriter.cc
index 3dcd7b82..95fba4e0 100644
--- a/libqpdf/QPDFWriter.cc
+++ b/libqpdf/QPDFWriter.cc
@@ -1408,12 +1408,12 @@ QPDFWriter::generateID()
if (this->static_id)
{
// For test suite use only...
- static char tmp[] = {0x31, 0x41, 0x59, 0x26,
- 0x53, 0x58, 0x97, 0x93,
- 0x23, 0x84, 0x62, 0x64,
- 0x33, 0x83, 0x27, 0x95,
- 0x00};
- result = tmp;
+ static unsigned char tmp[] = {0x31, 0x41, 0x59, 0x26,
+ 0x53, 0x58, 0x97, 0x93,
+ 0x23, 0x84, 0x62, 0x64,
+ 0x33, 0x83, 0x27, 0x95,
+ 0x00};
+ result = (char*)tmp;
}
else
{