Skip to content

Commit a1dd44f

Browse files
committed
fixed -Wshadow Clang compiler warning
1 parent 357ca2d commit a1dd44f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

simplecpp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,9 @@ class simplecpp::TokenList::Stream {
315315
// The UTF-16 BOM is 0xfffe or 0xfeff.
316316
if (ch1 >= 0xfe) {
317317
(void)get();
318-
const unsigned short bom = (static_cast<unsigned char>(ch1) << 8);
318+
const unsigned short byte = (static_cast<unsigned char>(ch1) << 8);
319319
if (peek() >= 0xfe)
320-
return bom | static_cast<unsigned char>(get());
320+
return byte | static_cast<unsigned char>(get());
321321
unget();
322322
return 0;
323323
}

0 commit comments

Comments
 (0)