Skip to content

Commit

Permalink
mitigate compiler warning C4706 for release build
Browse files Browse the repository at this point in the history
not shown up for debug build
  • Loading branch information
lifenjoiner committed Mar 25, 2024
1 parent ed7c527 commit 6c83304
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TextOffset.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class TextOffset
else if (end - start > 1)
{
const wchar_t* startW = reinterpret_cast<const wchar_t*>(start);
if (*startW == 0xFEFF || (bBigEndian = *startW == 0xFFFE))
if (*startW == 0xFEFF || (bBigEndian = *startW == 0xFFFE) == true)
{
lenBOM = 2;
return start + 2;
Expand All @@ -43,7 +43,7 @@ class TextOffset
{
if (end > start)
{
if (*start == 0xFEFF || (bBigEndian = *start == 0xFFFE))
if (*start == 0xFEFF || (bBigEndian = *start == 0xFFFE) == true)
{
lenBOM = 1;
return start + 1;
Expand Down

0 comments on commit 6c83304

Please sign in to comment.