From 2958b91f6212fce2935d23a0fbe2bf3c91199741 Mon Sep 17 00:00:00 2001 From: mpv Date: Mon, 12 Oct 2020 17:49:21 +0300 Subject: [PATCH] 0031841: Coding Rules, LDOM_XmlReader - eliminate new CLang compiler warning -Wtautological-overlap-compare --- src/LDOM/LDOM_XmlReader.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LDOM/LDOM_XmlReader.cxx b/src/LDOM/LDOM_XmlReader.cxx index 5b12bce602..a72e9fc0c7 100644 --- a/src/LDOM/LDOM_XmlReader.cxx +++ b/src/LDOM/LDOM_XmlReader.cxx @@ -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;