freebsd-ports/textproc/xerces-c3/files/patch-src-xercesc-util-XMLUTF8Transcoder.hpp
Pietro Cerutti 5a4dd8ebb6 - Add patches to address upstream the following upstream issues [1]
* https://issues.apache.org/jira/browse/XERCESC-1994
  * https://issues.apache.org/jira/browse/XERCESC-1995
- Bump PORTREVISION
- While at it, add a 'test' target to run the provided test suite

PR:		171537 [1]
Submitted by:	Michael Gmelin <freebsd@grem.de>
2012-09-12 09:47:56 +00:00

11 lines
519 B
C++

--- src/xercesc/util/XMLUTF8Transcoder.hpp.orig
+++ src/xercesc/util/XMLUTF8Transcoder.hpp
@@ -107,7 +107,7 @@ void XMLUTF8Transcoder::checkTrailingBytes(const XMLByte toCheck
{
char len[2] = {(char)(trailingBytes+0x31), 0};
char pos[2] = {(char)(position+0x31), 0};
- char byte[2] = {toCheck,0};
+ char byte[2] = {static_cast<char>(toCheck),0};
ThrowXMLwithMemMgr3(UTFDataFormatException, XMLExcepts::UTF8_FormatError, pos, byte, len, getMemoryManager());
}