diff --git a/include/ghc/filesystem.hpp b/include/ghc/filesystem.hpp index 244647a..be90574 100644 --- a/include/ghc/filesystem.hpp +++ b/include/ghc/filesystem.hpp @@ -2957,19 +2957,19 @@ inline std::basic_istream& operator>>(std::basic_istream> std::noskipws; while (is) { - c = is.get(); + auto c2 = is.get(); if (is) { - if (c == '\\') { - c = is.get(); + if (c2 == '\\') { + c2 = is.get(); if (is) { - tmp += static_cast(c); + tmp += static_cast(c2); } } - else if (c == '"') { + else if (c2 == '"') { break; } else { - tmp += static_cast(c); + tmp += static_cast(c2); } } }