1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0031841: Coding Rules, LDOM_XmlReader - eliminate new CLang compiler warning -Wtautological-overlap-compare

This commit is contained in:
mpv 2020-10-12 17:49:21 +03:00 committed by bugmaster
parent cdfcd39b69
commit 2958b91f62

View File

@ -202,7 +202,7 @@ LDOM_XmlReader::RecordType LDOM_XmlReader::ReadRecord (Standard_IStream& theIStr
(myPtr[3] == 43 || myPtr[3] == 47 || myPtr[3] == 56 || myPtr[3] == 57))
{
myBOM = LDOM_OSStream::BOM_UTF7;
if (myPtr[3] == 56 && myPtr[3] == 45)
if (myPtr[3] == 56 && myPtr[4] == 45)
myPtr += 5;
else
myPtr += 4;