Commit e1e15db0 authored by himajin100000's avatar himajin100000

avoid more C4310

parent 1fbbb3e4
......@@ -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 @@ void FoFiType1C::cvtGlyph(int offset, int nBytes, GooString *charBuf,
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;
......
......@@ -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* pdfDocEncodingToUTF16 (const GooString* orig, int* length)
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment