Ticket #43895: patch-src-xercesc-util-XMLUTF8Transcoder.hpp.diff

File patch-src-xercesc-util-XMLUTF8Transcoder.hpp.diff, 521 bytes (added by gallafent, 10 years ago)

Remove C++11 narrowing error

  • src/xercesc/util/XMLUTF8Transcoder.hpp

    old new  
    107107    {
    108108        char len[2]  = {(char)(trailingBytes+0x31), 0};
    109109        char pos[2]  = {(char)(position+0x31), 0};
    110         char byte[2] = {toCheck,0};
     110        char byte[2] = {static_cast<char>(toCheck),0};
    111111        ThrowXMLwithMemMgr3(UTFDataFormatException, XMLExcepts::UTF8_FormatError, pos, byte, len, getMemoryManager());
    112112    }
    113113