aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShadman <shadmansaleh3@gmail.com>2021-07-26 21:29:22 +0600
committerGitHub <noreply@github.com>2021-07-26 23:29:22 +0800
commit2b2ec9550d63619b643b6b2f4609a3dd76861e1c (patch)
treebc54dbab069df00f6183754717cd3a22b4444114
parent14ac9a31f84c7bd25b37c4ae6ad133572a5df3a7 (diff)
downloadyuescript-2b2ec9550d63619b643b6b2f4609a3dd76861e1c.tar.gz
yuescript-2b2ec9550d63619b643b6b2f4609a3dd76861e1c.tar.bz2
yuescript-2b2ec9550d63619b643b6b2f4609a3dd76861e1c.zip
Fix: yue -- not stoping read at EOF (#60)
-rw-r--r--src/yue.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yue.cpp b/src/yue.cpp
index b5f91ff..bf0ac24 100644
--- a/src/yue.cpp
+++ b/src/yue.cpp
@@ -271,7 +271,7 @@ int main(int narg, const char** args) {
271 } 271 }
272 char ch; 272 char ch;
273 std::string codes; 273 std::string codes;
274 while ((ch = std::cin.get()) != EOF) { 274 while ((ch = std::cin.get()) && !std::cin.eof()) {
275 codes += ch; 275 codes += ch;
276 } 276 }
277 yue::YueConfig conf; 277 yue::YueConfig conf;