Skip to content

Commit

Permalink
fixed -Wshadow Clang compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Feb 25, 2023
1 parent 7ff8c98 commit c9605fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simplecpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,9 @@ class simplecpp::TokenList::Stream {
// The UTF-16 BOM is 0xfffe or 0xfeff.
if (ch1 >= 0xfe) {
(void)get();
const unsigned short bom = (static_cast<unsigned char>(ch1) << 8);
const unsigned short byte = (static_cast<unsigned char>(ch1) << 8);
if (peek() >= 0xfe)
return bom | static_cast<unsigned char>(get());
return byte | static_cast<unsigned char>(get());
unget();
return 0;
}
Expand Down

0 comments on commit c9605fe

Please sign in to comment.