From 70a0085a47abedbf21f33218bdc62b43a14dea28 Mon Sep 17 00:00:00 2001 From: Steffen Schuemann Date: Wed, 4 Mar 2020 08:41:15 +0100 Subject: [PATCH] Fix issues introduced with PR 53. --- include/ghc/filesystem.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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); } } }