avoid more C4310
diff --git a/fofi/FoFiType1C.cc b/fofi/FoFiType1C.cc
index 5df096c..522b86a 100644
--- a/fofi/FoFiType1C.cc
+++ b/fofi/FoFiType1C.cc
@@ -16,6 +16,7 @@
// Copyright (C) 2009, 2010, 2017, 2018 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2012 Thomas Freitag <Thomas.Freitag@alfa.de>
// Copyright (C) 2018 Adam Reichold <adam.reichold@t-online.de>
+// Copyright (C) 2019 Tomoyuki Kubota <himajin100000@gmail.com>
//
// To see a description of the changes please see the Changelog file that
// came with your tarball or type make ChangeLog if you are building from git
@@ -1205,10 +1206,10 @@
start = charBuf->getLength();
if (top) {
- charBuf->append((char)73);
- charBuf->append((char)58);
- charBuf->append((char)147);
- charBuf->append((char)134);
+ charBuf->append('\x49'); //73;
+ charBuf->append('\x3A'); //58;
+ charBuf->append('\x93'); //147;
+ charBuf->append('\x86'); //134;
nOps = 0;
nHints = 0;
firstOp = true;
diff --git a/poppler/Form.cc b/poppler/Form.cc
index f6c71da..c13eda8 100644
--- a/poppler/Form.cc
+++ b/poppler/Form.cc
@@ -25,6 +25,7 @@
// Copyright 2018 Adam Reichold <adam.reichold@t-online.de>
// Copyright 2018, 2019 Nelson Benítez León <nbenitezl@gmail.com>
// Copyright 2019 Oliver Sander <oliver.sander@tu-dresden.de>
+// Copyright 2019 Tomoyuki Kubota <himajin100000@gmail.com>
//
//========================================================================
@@ -64,8 +65,8 @@
char *result = new char[(*length)];
const char *cstring = orig->c_str();
//unicode marker
- result[0] = (char)0xfe;
- result[1] = (char)0xff;
+ result[0] = '\xfe';
+ result[1] = '\xff';
//convert to utf16
for(int i=2,j=0; i<(*length); i+=2,j++) {
Unicode u = pdfDocEncoding[(unsigned int)((unsigned char)cstring[j])]&0xffff;