Index: source/expatwrap/xml2utf.cxx =================================================================== RCS file: /cvs/xml/sax/source/expatwrap/xml2utf.cxx,v retrieving revision 1.3 diff -u -b -B -p -r1.3 xml2utf.cxx --- source/expatwrap/xml2utf.cxx 15 May 2002 16:32:56 -0000 1.3 +++ source/expatwrap/xml2utf.cxx 23 Feb 2003 01:50:16 -0000 @@ -300,12 +300,14 @@ sal_Bool XMLFile2UTFConverter::scanForEn } } } - else if( 0xFE == pSource[0] && 0xFF == pSource[1] ) { + else if( 0xFE == static_cast (pSource[0]) && + 0xFF == static_cast (pSource[1]) ) { // UTF-16 big endian // conversion is done so that encoding information can be easily extracted m_sEncoding = "utf-16"; } - else if( 0xFF == pSource[0] && 0xFE == pSource[1] ) { + else if( 0xFF == static_cast (pSource[0]) && + 0xFE == static_cast (pSource[1]) ) { // UTF-16 little endian // conversion is done so that encoding information can be easily extracted m_sEncoding = "utf-16"; @@ -341,7 +343,9 @@ sal_Bool XMLFile2UTFConverter::scanForEn // UCS-4 little endian m_sEncoding = "ucs-4"; } - else if( 0x4c == pSource[0] && 0x6f == pSource[1] && 0xa7 == pSource[2] && 0x94 == pSource[3] ) { + else if( 0x4c == pSource[0] && 0x6f == pSource[1] && + 0xa7 == static_cast (pSource[2]) && + 0x94 == static_cast (pSource[3]) ) { // EBCDIC bReturn = sal_False; // must be extended }