Skip to content

Commit 1e8f324

Browse files
committed
fixed -Wshadow Clang compiler warning
1 parent 3b572f2 commit 1e8f324

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

simplecpp.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,9 @@ class simplecpp::TokenList::Stream {
317317
// The UTF-16 BOM is 0xfffe or 0xfeff.
318318
if (ch1 >= 0xfe) {
319319
(void)get();
320-
const unsigned short bom = (static_cast<unsigned char>(ch1) << 8);
320+
const unsigned short byte = (static_cast<unsigned char>(ch1) << 8);
321321
if (peek() >= 0xfe)
322-
return bom | static_cast<unsigned char>(get());
322+
return byte | static_cast<unsigned char>(get());
323323
unget();
324324
return 0;
325325
}

0 commit comments

Comments
 (0)