From c9605feec619bc1aa560e73d1d4a858cdc794062 Mon Sep 17 00:00:00 2001 From: firewave Date: Thu, 6 Oct 2022 02:37:26 +0200 Subject: [PATCH] fixed `-Wshadow` Clang compiler warning --- simplecpp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simplecpp.cpp b/simplecpp.cpp index c671533e..1fc4f1c7 100755 --- a/simplecpp.cpp +++ b/simplecpp.cpp @@ -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(ch1) << 8); + const unsigned short byte = (static_cast(ch1) << 8); if (peek() >= 0xfe) - return bom | static_cast(get()); + return byte | static_cast(get()); unget(); return 0; }